?path=/story/* initially redirects to ?path=/undefined/undefined
See original GitHub issueDescribe the bug When initially starting the dev server, it does a series of redirects. But it often (not always) ends up in this incorrect state:
/ -> /?path=/story/* -> /?path=/undefined/undefined
The side navigation is displayed correctly (all stories and links). However, the links are corrupt: ?path=/undefined/teststory--base-web
where the undefined
should be story
.
When I open the base URL manually again, it works. I can’t reproduce this but it happens quite frequently (about half of times).
I have basic.stories.js
with title: "Test Story"
and export const BaseWeb
.
Expected behavior
The initial redirect should end up at:
/?path=/story/test-story--base-web
System: Environment Info:
System: OS: macOS 10.15.5 CPU: (8) x64 Intel® Core™ i7-8559U CPU @ 2.70GHz Binaries: Node: 10.16.3 - ~/.volta/tools/image/node/10.16.3/6.9.0/bin/node Yarn: 1.19.1 - ~/.volta/tools/image/yarn/1.19.1/bin/yarn npm: 6.9.0 - ~/.volta/tools/image/node/10.16.3/6.9.0/bin/npm Browsers: Chrome: 83.0.4103.106 Firefox: 77.0.1 Safari: 13.1.1 npmPackages: @storybook/addon-a11y: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-actions: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-knobs: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addon-links: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/addons: 6.0.0-beta.33 => 6.0.0-beta.33 @storybook/react: 6.0.0-beta.33 => 6.0.0-beta.33
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:14 (6 by maintainers)
Top GitHub Comments
Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.36 containing PR #11293 that references this issue. Upgrade today to try it out!
You can find this prerelease on the
@next
NPM tag.Yep, thanks team. We’ve identified where the problem is and @ndelangen and I’ll work towards a solution in the next day or two