Skip to content

Commit

Permalink
Fixed bug when an item has / as an URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed Nov 9, 2013
1 parent a87009c commit ceeee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_activeurl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def check_active(url, element, full_path, css_class, menu):
# compare full_path with href according to menu configuration
if menu:
# skip "root" (/) url, otherwise it will be always "active"
if href != '/':
if href != '/' or full_path == '/':
# start with logic
logic = full_path.startswith(href)
else:
Expand Down

0 comments on commit ceeee46

Please sign in to comment.