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
Is your feature request related to a problem? Please describe
We are using Storybook Composition to import an app located in a directory on the domain (e.g. http://www.domain.com/storybook-app/) instead of the root (e.g. http://www.domain.com). Our configuration looks something like this:
With this type of url, the app successfully imports the external app however, the link to "View external Storybook" does not work. The link points to "https://www.domain.com/my-storybook-app" instead of "https://www.domain.com/my-storybook-app/". Because the trailing / is missing, the browser fails to load the app.
Describe the solution you'd like
I would like to append a trailing forward slash (/) to the "View external Storybook" link in the ref indicator flyout so that the link will successfully open a storybook app located in a directory of a URL.
Describe alternatives you've considered
These are the ways I have tried to make it work:
Appending / in the configuration does not work. It is stripped from the url automatically.
Appending /index.html fixes the link, but then the app fails to load in the left-hand nav.
Escaping the / also does not work (e.g. \/ or \\/).
These are the possible solutions I have considered:
Append / to the end of the url for the link's href.
Append /index.html to the end of the url for the link's href.
Strip the basename off the url before retrieving the stories.json config from the domain.
Are you able to assist to bring the feature to reality?
Yes, I'd love to help. However, I would like your opinion on the most desirable solution and a little direction on how best to proceed. Thanks!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
We are using Storybook Composition to import an app located in a directory on the domain (e.g.
http://www.domain.com/storybook-app/
) instead of the root (e.g.http://www.domain.com
). Our configuration looks something like this:With this type of url, the app successfully imports the external app however, the link to "View external Storybook" does not work. The link points to "https://www.domain.com/my-storybook-app" instead of "https://www.domain.com/my-storybook-app/". Because the trailing
/
is missing, the browser fails to load the app.Describe the solution you'd like
I would like to append a trailing forward slash (
/
) to the "View external Storybook" link in the ref indicator flyout so that the link will successfully open a storybook app located in a directory of a URL.Describe alternatives you've considered
These are the ways I have tried to make it work:
/
in the configuration does not work. It is stripped from the url automatically./index.html
fixes the link, but then the app fails to load in the left-hand nav./
also does not work (e.g.\/
or\\/
).These are the possible solutions I have considered:
/
to the end of the url for the link's href./index.html
to the end of the url for the link's href.stories.json
config from the domain.Are you able to assist to bring the feature to reality?
Yes, I'd love to help. However, I would like your opinion on the most desirable solution and a little direction on how best to proceed. Thanks!
The text was updated successfully, but these errors were encountered: