Allow for paths to be excluded from MultilingualURLMiddleware #966

Closed
tgpfeiffer opened this Issue Aug 27, 2011 · 2 comments

Comments

Projects
None yet
3 participants

On my (bilingual) website, I want a part that is only mono-lingual and not prefixed by the language, e.g. links from /de/startseite and /en/home should not point to /de/blog or /en/blog, but only to /blog. That is, in cms/middleware/multilingual.py not only settings.MEDIA_URL, settings.ADMIN_MEDIA_PREFIX, and settings.STATIC_URL should be excluded from link and form target rewriting, but there should also be something like settings.MULTILINGUAL_URL_EXCLUDE where I can define targets that I don't want to have rewritten. Something like that is also asked for in http://groups.google.com/group/django-cms/browse_thread/thread/e6460190f9e28ca9, so I think it's of general interest.

Contributor

mitar commented Jul 14, 2012

I implemented that in pull request #1236 but it was denied.

Member

digi604 commented Apr 8, 2013

closing as MultilingualMiddleware is removed in 2.4

digi604 closed this Apr 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment