aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2021-10-07 20:27:38 +0200
committerGitHub <noreply@github.com>2021-10-07 20:27:38 +0200
commit29acb3213b39a47dfab3e3e91ebb12931eca48b9 (patch)
treef29fa41658662d6623c12f101d6d04c380b5c37f
parentf0bd1e98962a6821cdb0543cfc2e5159d443d36a (diff)
downloadgitea-29acb3213b39a47dfab3e3e91ebb12931eca48b9.tar.gz
gitea-29acb3213b39a47dfab3e3e91ebb12931eca48b9.zip
Fix broken Activities link in team dashboard (#17255)
Remove '/' suffix from organization dashboard link Fixes #17250
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index fb40a0acc8..934b834e96 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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 + "/"
}