Skip to content

Commit

Permalink
Revert "Update bg_active nav tag to check if target path is in curren…
Browse files Browse the repository at this point in the history
…t path"

This reverts commit 45ca601.
  • Loading branch information
robdivincenzo committed Mar 14, 2024
1 parent e9c5640 commit 55736b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 55736b0

Please sign in to comment.