Skip to content

Commit

Permalink
Merge pull request #12932 from marksmccann/issue-12659
Browse files Browse the repository at this point in the history
Composition: Append index to ref indicator links
  • Loading branch information
shilman authored Nov 1, 2020
2 parents 04cd18e + 17b29fd commit caae314
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit caae314

Please sign in to comment.