Commits

Matthew Schinckel committed 4c9c11c

Better handling of menu items that start with url:

  • Participants
  • Parent commits edcde98

Comments (0)

Files changed (1)

menus/templatetags/menu_item.py

         """
         if self.url[0] in "\"'":
             url = self.url.strip("'\"")
-            if url.startswith('url:'):
-                url = reverse(url[4:])
         else:
-            url = resolve_path(self.url, context)
+            url = self.url
+            
+        if url.startswith('url:'):
+            url = reverse(url[4:])
+        else:
+            url = resolve_path(url, context)
         
         if self.text[0] in "\"'":
             text = self.text.strip("\"'")