From 0324cf277c18dbc5d7cfec9cf2a5789da637b3f9 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 7 Jun 2024 19:27:32 +0530 Subject: [PATCH] [FIX] HORILLA_CRUMBS: Breadcrumbs issue while switching candiates individual views --- horilla_crumbs/context_processors.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/horilla_crumbs/context_processors.py b/horilla_crumbs/context_processors.py index a501ddfcd..ddca4237b 100644 --- a/horilla_crumbs/context_processors.py +++ b/horilla_crumbs/context_processors.py @@ -146,7 +146,11 @@ def breadcrumbs(request): if len(parts) > 1: last_path = parts[-1] - if last_path in sidebar_urls or parts[-2] == "employee-view": + if ( + last_path in sidebar_urls + or parts[-2] == "employee-view" + or parts[-2] == "candidate-view" + ): breadcrumbs = user_breadcrumbs[user_id] first_path = breadcrumbs[0] user_breadcrumbs[user_id].clear()