mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-03-16 22:10:30 +00:00
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:
commit
dca220cb0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue