Merge pull request #135 from WnP/i18n-slugs

[fix] i18n slugs required specific page in order to retrieve good url
This commit is contained in:
Diogo Marques 2017-11-30 16:34:52 +00:00 committed by GitHub
commit dca220cb0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,7 +328,7 @@ def _new_relative_url(self, current_site):
for (id, root_path, root_url) in self.get_site_root_paths():
if self.url_path.startswith(root_path):
return ('' if current_site.id == id else root_url) + reverse('wagtail_serve',
args=(self.url_path[len(root_path):],))
args=(self.specific.url_path[len(root_path):],))
@property