Commits

Tino de Bruijn committed c50b80c

Really fix issue #7

Comments (0)

Files changed (1)

django_nav/templatetags/nav.py

             if self.check_conditional(nav):
                 continue
 
-            path = self.context['request'].path
-            nav.option_list = self.build_options(nav.options, path)
+            nav.option_list = self.build_options(nav.options)
             nav.active = False
             url = nav.get_absolute_url()
-            nav.active = nav.active_if(url, path)
+            nav.active = nav.active_if(url, self.context['request'].path)
 
             self.context[self.var_name].append(
                 template.loader.render_to_string(nav.template, {'nav': nav}))
                 continue
 
             option.active = False
-            option.active = option.active_if(option.get_absolute_url(), path)
+            option.active = option.active_if(option.get_absolute_url(),
+                                                self.context['request'].path)
             option.option_list = self.build_options(option.options)
             options.append(template.loader.render_to_string(option.template,
                                                             {'option': option}))