Skip to content

Commit db876d8

Browse files
GiteaBotmithileshgupta12Mithilesh Gupta
authored
Fix #35763: Add proper page title for project pages (#35773) (#35909)
Backport #35773 by @mithileshgupta12 Co-authored-by: Mithilesh Gupta <mithileshgupta059@gmail.com> Co-authored-by: Mithilesh Gupta <guptamithilesh@protonmail.com>
1 parent 2b71bf2 commit db876d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/org/projects.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +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"] = fmt.Sprintf("%s - %s", project.Title, ctx.ContextUser.DisplayName())
439440

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

0 commit comments

Comments
 (0)