I wrote my tryouts in http://drupal.org/node/1260390
but after i saw http://drupal.org/node/1447460
i checked my redirections.

All of my old aliases have non-ASCII (Turkish UTF-8) characters.
Since last week I use transliteration module to change non-ASCII characters in my path aliases.

So,

  • When i change a non-ASCII alias, redirect module creates a redirection, but when i click it from "/admin/config/search/redirect/" list it doesn't go to new alias node, it goes to old alias node.
  • If old alias has only ASCII characters, everything is working well.
    It creates redirection and gives a perfect 301.
CommentFileSizeAuthor
#9 redirect-multibyte_path-1448706-9.patch707 bytesgreenskin

Comments

trante’s picture

For this error i also tried "redirect 7.x-1.0-beta3".
But the same behaviour occured.

I removed it and installed "redirect 7.x-1.0-beta2"
But it gave errors due to update of the module (redirect_list_form(), date_timezone_set(), date_format() )
I suppose this is normal.
So i didn't try its behaviour to not to do a database update.

Could anybody having UTF-8 alias try a redirect ?

trante’s picture

Anybody has comments?

ANDiTKO’s picture

Hello neighbor!

Try to import your redirects using the CSV bulk import module. Check out my other post for more help. I was able to redirect from and to non-ascii Greek utf8 characters using this module.

Greetings from Greece!

trante’s picture

Thank you for answer :)
I'm bored of this error and exhausted from struggling to fix it.
Then some months ago I changed all my url aliases to only ASCII characters, now all my aliases redirecting :)

trante’s picture

Issue summary: View changes

typo

pere orga’s picture

Issue summary: View changes

Closing #2261305: Hyphen in filename as a duplicate of this one

pere orga’s picture

Closing #1341498: special characters as a duplicate of this.

pere orga’s picture

Title: Redirection doesn't work for non-ASCII characters » Redirection doesn't work for non-ASCII and special characters
hkirsman’s picture

I'm trying to redirect to here: http://www.tsitaat.com/tsitaadid/teemad/üksindus

And I get error "The redirect path tsitaadid/teemad/üksindus is not valid."

So ü, ä, õ and ö which are in estonian language, just don't work.

greenskin’s picture

Status: Active » Needs review
StatusFileSize
new707 bytes

Adding a rawurlencode() on the redirect value during the validation check fixes the issue for us.

Status: Needs review » Needs work

The last submitted patch, 9: redirect-multibyte_path-1448706-9.patch, failed testing. View results

hkirsman’s picture

I was now able to add redirection for urls with source "tsitaadid/teemad/võitleja"

Thank you!

wylbur’s picture

Status: Needs work » Closed (outdated)

Closing this as Outdated as Drupal 7 is EOL.