Fixes improper handling of redirects in cms >= 2.4 Before when checking for a path to redirect, the middleware assumed that the path had no language prefix, so it would not match a pattern like /non-language-prefixed/ if it was requested with /prefix/non-language-prefixed/ because of this I've added a setting REDIRECTS_IGNORE_LANGUAGE_PREFIX that keeps the old wrong behavior when False and when True, properly strips the prefix from the path.
Fixes improper handling of redirects in cms >= 2.4
Before when checking for a path to redirect, the middleware
assumed that the path had no language prefix, so it would not match
a pattern like /non-language-prefixed/ if it was requested with /prefix/non-language-prefixed/ because of this I've added a setting REDIRECTS_IGNORE_LANGUAGE_PREFIX that
keeps the old wrong behavior when False and when True, properly strips the prefix from the path.

divio/django-redirects-hvad