Fix branches link

Without the trailing '/' further links like 'create' will lead to
illegal links because they will not be appended but will replace the
'branches' part.
This commit is contained in:
René Pfeuffer
2020-11-02 07:40:48 +01:00
parent 68d6d71c71
commit 5f99ece3bb
3 changed files with 6 additions and 5 deletions

View File

@@ -50436,7 +50436,7 @@ exports[`Storyshots RepositoryEntry Avatar EP 1`] = `
>
<a
className="RepositoryEntryLink__PointerEventsLink-sc-1hpqj0w-0 iZuqoP level-item"
href="/repo/hitchhiker/heartOfGold/branches"
href="/repo/hitchhiker/heartOfGold/branches/"
onClick={[Function]}
>
<i
@@ -50550,7 +50550,7 @@ exports[`Storyshots RepositoryEntry Before Title EP 1`] = `
>
<a
className="RepositoryEntryLink__PointerEventsLink-sc-1hpqj0w-0 iZuqoP level-item"
href="/repo/hitchhiker/heartOfGold/branches"
href="/repo/hitchhiker/heartOfGold/branches/"
onClick={[Function]}
>
<i
@@ -50661,7 +50661,7 @@ exports[`Storyshots RepositoryEntry Default 1`] = `
>
<a
className="RepositoryEntryLink__PointerEventsLink-sc-1hpqj0w-0 iZuqoP level-item"
href="/repo/hitchhiker/heartOfGold/branches"
href="/repo/hitchhiker/heartOfGold/branches/"
onClick={[Function]}
>
<i
@@ -50772,7 +50772,7 @@ exports[`Storyshots RepositoryEntry Quick Link EP 1`] = `
>
<a
className="RepositoryEntryLink__PointerEventsLink-sc-1hpqj0w-0 iZuqoP level-item"
href="/repo/hitchhiker/heartOfGold/branches"
href="/repo/hitchhiker/heartOfGold/branches/"
onClick={[Function]}
>
<i

View File

@@ -44,7 +44,7 @@ class RepositoryEntry extends React.Component<Props> {
renderBranchesLink = (repository: Repository, repositoryLink: string) => {
if (repository._links["branches"]) {
return <RepositoryEntryLink icon="code-branch" to={repositoryLink + "/branches"} />;
return <RepositoryEntryLink icon="code-branch" to={repositoryLink + "/branches/"} />;
}
return null;
};