#18862: FlatPages get_absolute_url should pay attention to script prefix --------------------------------------+-------------------- Reporter: GunnarScherf | Owner: nobody Type: Cleanup/optimization | Status: new Component: Uncategorized | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- When hosting a django app under a subpath of a domain, then get_absolute_url returns the url without the subpath.
{{{ def get_absolute_url(self): return self.url }}} Better would be if the subpath is recognized {{{ def get_absolute_url(self): absolute_url = "%s%s" % (get_script_prefix().rstrip('/'), self.url) return absolute_url }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18862> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.