You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the get_absolute_url() method is executed on (rich text) pages, it automatically adds the SITE_PREFIX if any. However, the behaviour for links is different and does not take it into account. I think that mezzanine.pages.models should read (only excerpt of interest):
if self.content_model == "link":
# My addition is next two lines:
if settings.SITE_PREFIX:
slug = settings.SITE_PREFIX + '/' + slug
# Ensure the URL is absolute.
slug = urljoin('/' , slug)
return slug
I've never contributed to a project (so I'm not sure if a pull request or something else is needed), but if there's something I can do to ease your work just drop me a line.
Pedro.
The text was updated successfully, but these errors were encountered:
Hi,
When the get_absolute_url() method is executed on (rich text) pages, it automatically adds the SITE_PREFIX if any. However, the behaviour for links is different and does not take it into account. I think that mezzanine.pages.models should read (only excerpt of interest):
I've never contributed to a project (so I'm not sure if a pull request or something else is needed), but if there's something I can do to ease your work just drop me a line.
Pedro.
The text was updated successfully, but these errors were encountered: