Skip to content

Commit

Permalink
Merge pull request #10 from bmispelon/master
Browse files Browse the repository at this point in the history
Fixed bug when an item has / as an URL.
  • Loading branch information
hellysmile committed Nov 19, 2013
2 parents a87009c + ceeee46 commit 4f95256
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 4f95256

Please sign in to comment.