Hey Peteris, Mezzanine's Page model has it's own get_absolute_url defined which may be the problem (I'm not familiar with django-solid-il8n-urls). You could probably get the desired functionality by monkey patching Page's get_absolute_url to work the way you expect. The "Monkey Patching" section of this post provides an example, http://bitofpixels.com/blog/techniques-for-modifying-mezzanine/.
On Wed, Apr 2, 2014 at 5:01 AM, Pēteris Paikens <[email protected]> wrote: > Hello, > > I'm using i18n urls where the specific pages are prefixed with the > language code, e.g. www.mysite.org/en/about/, using the > django-solid-i18n-urls <https://github.com/st4lk/django-solid-i18n-urls> > pack, and Mezzanine seems to find the pages appropriately. > > However, for generated URL's on the page templates (for example, on the > main dropdown menu template pages/menus/dropdown.html) the function > page.get_absolute_url builds links without the required prefix, e.g., > www.mysite.org/about/ regardless of the lanugage, instead of > www.mysite.org/en/about/ which would be the expected result. > > Am I doing something wrong, or does the system need some changes in order > to support this? > > Regards, > Peteris > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
