Sitecof: Récriture des URLs publiques #752

Closed
champeno wants to merge 3 commits from Evarin/sitecof-rewrite-urls into master
Showing only changes of commit d1f5cb6840 - Show all commits

View file

@ -23,7 +23,6 @@ class COFRewriteUrlMixin:
pattern = getattr(settings, "SITECOF_INTERNAL_URL", r"^/(en/|fr/|)sitecof/")
replace = getattr(settings, "SITECOF_PUBLIC_URL", "/\\1news/")
print(pattern, replace, page_path)
page_path = re.sub(pattern, replace, page_path)
return (site_id, root_url, page_path)