-
-
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
Addon-Docs: MDX links to internal docs cannot be opened in new tab #9502
Comments
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I found a workaround while troubleshooting an unrelated problem with Angular routing in a story. By adding I'm unsure if this has any broader implications, but perhaps this should come default on the existing EDIT: Don't do this, it has broader implications! Turns out it breaks the header anchor links in docs, causing them to launch the manager within the preview frame. |
I have created a test for internal linking for storybook 7.0 using beta 48 as this issue seems to persist there.
Other related issues: cc: @yannbf |
Crikey!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-rc.4 containing PR #21569 that references this issue. Upgrade today to the
|
@shilman amazing! We'll be trying this out as soon as we migrated to 7.0 🥳 |
Describe the bug
When writing MDX, opening an internal link in a new tab displays an error due to a malformed URL (see screenshot). This is related to the new
NAVIGATE_URL
functionality introduced in #9328, which is otherwise amazing btw.The new URL has
iframe.html
before the query string, so presumably the manager isn't getting loaded in the new tab.To Reproduce
Steps to reproduce the behavior:
https://storybookjs.now.sh/official-storybook/?path=/docs/addons-docs-mdx-in-story--typography#links
link to another story (docs)
in new tab, or middle click it.Expected behavior
The new tab should correctly load the linked docs page.
Screenshots
System:
The text was updated successfully, but these errors were encountered: