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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, patch_commit_9c6ec5d37272.patch, failed testing.

cedric’s picture

Status: Needs work » Needs review
FileSize
1.22 KB

I 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.

alexharries’s picture

Thanks for that Cedric - interesting to see how you wrote your patch. Cheers! :)

balawang’s picture

Hi 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.

balawang’s picture

Status: Needs review » Reviewed & tested by the community

I have tested this patched, it's working properly.

Thanks for sharing.