Hi,

If we are creating redirects from the path "test" for several languages (English, Italian, French) it all goes fine and we end up having 3 redirects for every language pointing to language specific URLs.
Then we define the "All languages" redirect for the path "test" to have the default redirect for this path. And after doing this we are not able to define more language specific redirects for this path (Spanish, Japanese). But if we remove the "All languages" redirect - then we can add more language specific redirects and then add the "All languages" redirect back.

Looking forward to resolution :) From what I understood, it is somewhere in the path_redirect_load_by_source function logic used in the form validation.

Thanks
AndyB

Comments

duozersk’s picture

Status: Active » Needs review

I probably found a quick fix for this issue:

Line 451 in the path_redirect.admin.inc, path_redirect_edit_form_validate function:

    if ($redirect['rid'] != $existing['rid']) {

change to:

    if ($redirect['rid'] != $existing['rid'] && $redirect['language'] == $existing['language']) {
dave reid’s picture

Status: Needs review » Fixed

Very good catch. Committed to CVS!
http://drupal.org/cvs?commit=457114

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.