From 55736b00e4abe73fc2330d1f35663de3c8a58a53 Mon Sep 17 00:00:00 2001 From: Rob DiVincenzo Date: Thu, 14 Mar 2024 19:21:56 -0400 Subject: [PATCH] Revert "Update bg_active nav tag to check if target path is in current path" This reverts commit 45ca6016e88dbb9b2a03c575539b9c62e74b3be1. --- network-api/networkapi/wagtailpages/templatetags/bg_nav_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-api/networkapi/wagtailpages/templatetags/bg_nav_tags.py b/network-api/networkapi/wagtailpages/templatetags/bg_nav_tags.py index efe08c0885d..a02f0efefa0 100644 --- a/network-api/networkapi/wagtailpages/templatetags/bg_nav_tags.py +++ b/network-api/networkapi/wagtailpages/templatetags/bg_nav_tags.py @@ -33,7 +33,7 @@ def check_active_category(current_category, target_category): # Determine if a nav link should be active. @register.simple_tag(name="bg_active_nav") def bg_active_nav(current, target): - return "active" if urlparse(target).path in urlparse(current).path else "" + return "active" if urlparse(current).path == urlparse(target).path else "" @register.simple_tag(name="product_in_category")