]> source.dussan.org Git - gitea.git/commitdiff
Fix broken Activities link in team dashboard (#17255)
authorJimmy Praet <jimmy.praet@telenet.be>
Thu, 7 Oct 2021 18:27:38 +0000 (20:27 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 18:27:38 +0000 (20:27 +0200)
Remove '/' suffix from organization dashboard link

Fixes #17250

models/user.go

index fb40a0acc8f2ebd805402764fef1ed5cbb0bdc93..934b834e9632814129d101ae46b207c0dd819b41 100644 (file)
@@ -300,7 +300,7 @@ func (u *User) CanImportLocal() bool {
 // DashboardLink returns the user dashboard page link.
 func (u *User) DashboardLink() string {
        if u.IsOrganization() {
-               return u.OrganisationLink() + "/dashboard/"
+               return u.OrganisationLink() + "/dashboard"
        }
        return setting.AppSubURL + "/"
 }