From 5f99ece3bbd5f199f0121996d45206846cc16afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Mon, 2 Nov 2020 07:40:48 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 1 + .../src/__snapshots__/storyshots.test.ts.snap | 8 ++++---- scm-ui/ui-components/src/repos/RepositoryEntry.tsx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea46299c4..e7f4c97d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Internal server error for git sub modules without tree object ([#1397](https://github.com/scm-manager/scm-manager/pull/1397)) - Do not expose subversion commit with id 0 ([#1395](https://github.com/scm-manager/scm-manager/pull/1395)) - SVN diff with property changes ([#1400](https://github.com/scm-manager/scm-manager/pull/1400)) +- Branches link in repository overview ([#1404](https://github.com/scm-manager/scm-manager/pull/1404)) ## [2.8.0] - 2020-10-27 ### Added diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 7c552c9c62..f2fd0d93d8 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -50436,7 +50436,7 @@ exports[`Storyshots RepositoryEntry Avatar EP 1`] = ` > { renderBranchesLink = (repository: Repository, repositoryLink: string) => { if (repository._links["branches"]) { - return ; + return ; } return null; };