Skip to content

Commit

Permalink
fix: Breadcrumb Label for Non-Logged-In Users in Job Portal (#2439)
Browse files Browse the repository at this point in the history
Co-authored-by: Rucha Mahabal <[email protected]>
  • Loading branch information
2 people authored and Gowthamk007m committed Jan 8, 2025
1 parent 0cabff0 commit 787236c
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 787236c

Please sign in to comment.