Skip to content

Commit

Permalink
Fix broken Activities link in team dashboard (go-gitea#17255)
Browse files Browse the repository at this point in the history
Remove '/' suffix from organization dashboard link

Fixes go-gitea#17250
  • Loading branch information
jpraet authored and Stelios Malathouras committed Oct 15, 2021
1 parent 0c64644 commit fa20532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Expand Up @@ -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 + "/"
}
Expand Down

0 comments on commit fa20532

Please sign in to comment.