Fix broken Activities link in team dashboard (#17255) (#17258)

Remove '/' suffix from organization dashboard link

Fixes #17250
release/v1.15
Jimmy Praet 2021-10-07 20:58:59 +02:00 committed by GitHub
parent 7b1153e943
commit 6e0a08d753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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