Skip to content

Commit

Permalink
Fixed flat URLs for app hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jul 15, 2012
1 parent 32239cb commit c50c492
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cms/appresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c50c492

Please sign in to comment.