-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative links in md files are broken in v6.1.12 #13630
Comments
Hi @shilman, Thank you. |
I'm also running into this and have had to lock our Storybook installation at |
Hello @mgameover, I found a fix for this, should be fixed real soon. thanks for reporting! |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-rc.10 containing PR #14334 that references this issue. Upgrade today to the
|
Hi guys, Unfortunately, the issue has not been fixed.
npx sb@next info: |
As I mentioned before it was broken in PR #13022 lib/components/src/typography/DocumentFormatting.tsx line 75-80 Hope that helps, Thanks. |
@mgameover Do you have a repro repo you can share? @ndelangen repro'd the problem in the monorepo and fixed our repro (you can check #14334 for details). If it doesn't fix your case, it would be useful to be able to try it, or at the very least understand how it differs from our repro. |
Unfortunately I'm also still having this issue. In my case, I'm including md links as part of a JSDoc block in the component file. If I have some time today I can put together a repro repo, but hopefully that tidbit can provide more context. |
Hi @shilman, I've just created a repo: https://github.com/mgameover/sb-md-relative-links Please take a look. To reproduce the issue:
Result: Hope that helps |
Hi guys,
We are using md files to display component's documentation under Docs, some of those files have relative links to other stories.
For example:
which should navigate to http ://localhost:6006/?path=/docs/components-navigation-navigation-framework--default, but after updating SB from v6.1.11 to 6.1.12 it goes to http: //localhost:6006/iframe.html?path=/docs/components-navigation-navigation-framework--default.
As you can see, "iframe.html?" is being added to the url, as the result page cannot be found.
@shilman, @ndelangen, I took a look at the change log and it seems that it was broken here:
Addon-docs: Fix link not working cross origin (#13022)
System
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-4940MX CPU @ 3.10GHz
Binaries:
Node: 14.15.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 87.0.4280.141
Edge: Spartan (44.19041.423.0), Chromium (87.0.664.75)
npmPackages:
@storybook/addon-a11y: ^6.1.12 => 6.1.14
@storybook/addon-actions: ^6.1.12 => 6.1.14
@storybook/addon-docs: ^6.1.12 => 6.1.14
@storybook/addon-knobs: ^6.1.12 => 6.1.14
@storybook/addon-links: ^6.1.12 => 6.1.14
@storybook/addon-storysource: ^6.1.12 => 6.1.14
@storybook/addon-viewport: ^6.1.12 => 6.1.14
@storybook/addons: ^6.1.12 => 6.1.14
@storybook/angular: ^6.1.12 => 6.1.14
@storybook/source-loader: ^6.1.12 => 6.1.14
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: