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

Composition: Append index to ref indicator links #12932

Merged
merged 1 commit into from
Nov 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ui/src/components/sidebar/RefIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const ReadyMessage: FunctionComponent<{
componentCount: number;
leafCount: number;
}> = ({ url, componentCount, leafCount }) => (
<Message href={url} target="_blank">
<Message href={url.replace(/\/?$/, '/index.html')} target="_blank">
<BlueIcon icon="globe" />
<div>
<MessageTitle>View external Storybook</MessageTitle>
Expand Down Expand Up @@ -284,7 +284,7 @@ const ReadDocsMessage: FunctionComponent = () => (
);

const ErrorOccurredMessage: FunctionComponent<{ url: string }> = ({ url }) => (
<Message href={url} target="_blank">
<Message href={url.replace(/\/?$/, '/index.html')} target="_blank">
<RedIcon icon="alert" />
<div>
<MessageTitle>Something went wrong</MessageTitle>
Expand All @@ -294,7 +294,7 @@ const ErrorOccurredMessage: FunctionComponent<{ url: string }> = ({ url }) => (
);

const LoadingMessage: FunctionComponent<{ url: string }> = ({ url }) => (
<Message href={url} target="_blank">
<Message href={url.replace(/\/?$/, '/index.html')} target="_blank">
<BlueIcon icon="time" />
<div>
<MessageTitle>Please wait</MessageTitle>
Expand Down