Permalink
Browse files

Fixed flat URLs for app hooks.

  • Loading branch information...
1 parent 32239cb commit c50c492b9309837ae7fdd9ebe746b55ea92b44bb @mitar mitar committed Jul 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 cms/appresolver.py
View
@@ -171,7 +171,10 @@ def get_app_patterns():
# Loop over all titles with an application hooked to them
for title in title_qs.exclude(application_urls=None).exclude(application_urls='').select_related():
- path = title.path
+ if settings.CMS_FLAT_URLS:
+ path = title.slug
+ else:
+ path = title.path
if use_namespaces:
mixid = "%s:%s:%s" % (path + "/", title.application_urls, title.language)
else:

0 comments on commit c50c492

Please sign in to comment.