You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you remove the --${storyId} at the end, the Story group is selected on the left, but there is no individual story selected or rendered on the Canvas
kevinSuttle
changed the title
v5 URL format: default to first story if no storyId is included
v5 URL format: default to first story if no path or storyId is included
Aug 15, 2019
Is your feature request related to a problem? Please describe.
Having to include
--*
at the end of Storybook URLs is a bit of a task. Seems avoidable.Describe the solution you'd like
If the URL doesn't have --* or $[storyID} at the end of it, the router would redirect to the first story listed.
(Maybe related?) If the URL doesn't have
/
?
path
redirect to the first story
e.g. https://monorepo-git-next.storybook.now.sh/examples/official-storybook - nothing happens
https://monorepo-git-next.storybook.now.sh/examples/official-storybook/ - redirect happens
Describe alternatives you've considered
Always including
/
,?
,path
, and--*
at the end of Storybook URLs.Are you able to assist bring the feature to reality?
I can
Additional context
Example:
https://monorepo-dzdv58z2b.now.sh/examples/official-storybook/?path=/story/docs-docspage--with-subtitle - works
If you remove the --${storyId} at the end, the Story group is selected on the left, but there is no individual story selected or rendered on the Canvas
Try: https://monorepo-dzdv58z2b.now.sh/examples/official-storybook/?path=/story/docs-docspage
The text was updated successfully, but these errors were encountered: