Fix broken Activities link in team dashboard (#17255)

Remove '/' suffix from organization dashboard link

Fixes #17250
tokarchuk/v1.17
Jimmy Praet 3 years ago committed by GitHub
parent f0bd1e9896
commit 29acb3213b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 + "/"
}

Loading…
Cancel
Save