Skip to content

Commit

Permalink
fix: Breadcrumb Label for Non-Logged-In Users in Job Portal (backport #…
Browse files Browse the repository at this point in the history
…2439) (#2598)

Co-authored-by: Rucha Mahabal <[email protected]>
Co-authored-by: Nihantra C. Patel <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 4a2ca25 commit 72875c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hrms/www/jobs/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

def get_context(context):
context.no_cache = 1
context.parents = [{"name": _("My Account"), "route": "/"}]
if frappe.session.user == "Guest":
context.parents = [{"name": _("Home"), "route": "/"}]
else:
context.parents = [{"name": _("My Account"), "route": "/me"}]
context.body_class = "jobs-page"
page_len = 20
filters, txt, sort, offset = get_filters_txt_sort_offset(page_len)
Expand Down

0 comments on commit 72875c6

Please sign in to comment.