It looks like you cannot create a path redirect for example/foo/bar with language en-ZA when a page exists at the same path for language en-GB.
The supplied patch modifies the check in the validate function of the "add redirect" form and, if the Locale module is enabled, only prevents creation of a new redirect if one doesn't already exist in the same language.
DANGER! I've tested this and it works on the couple of test cases I've set up, but I haven't had time to thoroughly check it doesn't interfere with path handling - if you apply this patch, please test thoroughly and report any bugs you find back to me.
Thanks!
Al
Comment | File | Size | Author |
---|---|---|---|
#2 | path_redirect-1378928-2.patch | 1.22 KB | cedric |
patch_commit_9c6ec5d37272.patch | 1.42 KB | alexharries |
Comments
Comment #2
cedric CreditAttribution: cedric commentedI confirm we are seeing the same bug.
Although the proposed patch in #1 is buggy and pretty much just by-pass the validation.
I am attaching a corrected patch, which seems to work for me.
Comment #3
alexharries CreditAttribution: alexharries commentedThanks for that Cedric - interesting to see how you wrote your patch. Cheers! :)
Comment #4
balawang CreditAttribution: balawang commentedHi there,
Thank you for the patch, I am gonna use it.
Currently, we faced an issue for a site supporting multilingual, however, there are already more than 10 languages have the url alias, then I am going to create a redirect or either change the language option, I got the same error.
Hope someone else see it, can keep updating the issue.
Cheers,
B.
Comment #5
balawang CreditAttribution: balawang commentedI have tested this patched, it's working properly.
Thanks for sharing.