Skip to content

Commit fbf3e17

Browse files
author
Mithilesh Gupta
committed
Fix #35763: Added proper page title for user projects too
1 parent 2ae0500 commit fbf3e17

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

routers/web/org/projects.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,7 @@ func ViewProject(ctx *context.Context) {
436436
ctx.Data["Project"] = project
437437
ctx.Data["IssuesMap"] = issuesMap
438438
ctx.Data["Columns"] = columns
439-
ctx.Data["Title"] = project.Title
440-
441-
if ctx.ContextUser.IsOrganization() {
442-
ctx.Data["Title"] = fmt.Sprintf("%s - %s", project.Title, ctx.Org.Organization.DisplayName())
443-
}
439+
ctx.Data["Title"] = fmt.Sprintf("%s - %s", project.Title, ctx.ContextUser.DisplayName())
444440

445441
if _, err := shared_user.RenderUserOrgHeader(ctx); err != nil {
446442
ctx.ServerError("RenderUserOrgHeader", err)

0 commit comments

Comments
 (0)