Skip to content
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

Open on Docs tab by default #19169

Open
aymenmensi opened this issue Sep 12, 2022 · 1 comment
Open

Open on Docs tab by default #19169

aymenmensi opened this issue Sep 12, 2022 · 1 comment

Comments

@aymenmensi
Copy link

aymenmensi commented Sep 12, 2022

I want it to open by default on the doc tab and then be able to navigate as I used to

Description

when using viewMode: 'docs' it doesn't load the docs by default at first and then when I change to another component story it goes to the doc tab, but when I toggle to another story from the same component it sends me back to the docs page

scenario

  1. Page loads at http://localhost:6006/?path=/story/introduction-saqara-ui--page, it should've been docs not story
  2. I open the button "Primary" story, and it opens on the doc page http://localhost:6006/?path=/docs/components-button--primary
  3. I navigate to the story tab (canvas) http://localhost:6006/?path=/story/components-button--primary
  4. I navigate to the "Secondary" story wanting the story (canvas) tab to be opened but get the docs page again http://localhost:6006/?path=/docs/components-button--secondary
Screencast.from.12-09-22.09.55.05.webm

Recommended fix

the viewMode: 'docs' should able us to load the docs page at first not the canvas one, then it should let us navigate like we always do without redirecting us to the docs with every navigation

@sharvilak11
Copy link

This was working with 6.3 but has stopped working after moving to 6.5 with storyStoreV7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants