Download & Extend

Difficulty creating redirects to internal paths that include accented characters

Project:Path redirect
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I have yet to test with 6.x-1.0-beta4, but with beta3 a character such as "à" in the "To" URL I get the message "The redirect to path does not appear valid."

The à character has to be entered in the To box as %C3%A0; on the page listing redirects, and in the browser address bar (after clicking on either the From or To links on that page), it shows as %25C3%25A0 but works OK.

Note that if the URL is entered as a complete external alias then again the à character has to be input in the To box in the form %C3%A0, but then on the page listing all the redirects and in the browser address bar on visiting the link the character is once more shown as à.

Comments

#1

Status:active» postponed (maintainer needs more info)

Actually seeing how old beta3 is now I'd better try out beta4 first..

#2

Did beta4 work for you?

#3

Just tried the latest version, and tried to redirect to an image file with "ä" in the name.

"The redirect to path does not appear valid."

The same thing happens if the "to"-path has a space in it.

Couldn't this be solved simply by automatically URLencoding the "to"-path?

#4

Status:postponed (maintainer needs more info)» active

Hmm. I guess I should've changed the status when I posted my comment?

#5

Version:6.x-1.0-beta3» 6.x-1.x-dev
Status:active» postponed (maintainer needs more info)

Can you please post the complete 'From' and 'To' URLs you are using? Also please check you are using the latest code.

#6

Status:postponed (maintainer needs more info)» active

Tested with beta6, creating new redirects:

From: drupäl
To: http://ampli.fi/files/drupäl.org.png
Result: The redirect to path does not appear valid.

From: drupäl
To: To: http://ampli.fi/files/drupal.org.png
Result: The redirect has been saved.

#7

Status:active» postponed (maintainer needs more info)

This appears to be a bug with core's valid_url() function then.

http://drupal.org/project/issues/drupal?text=valid_url
#624824: problem with non-latin characters in URL

I guess I should consider removing the valid_url() checks. Path.module doesn't perform this validation on its aliases, but this is a different case. Not sure what to do.

#8

-bump-

Having same issue with spaces in 'to' URL not validating.

#9

Status:postponed (maintainer needs more info)» active

#10

Status:active» fixed

The valid_url() check has been removed in the lastest code. I can't duplicate any problems with special characters or spaces in the 'To' field.

#11

Status:fixed» closed (fixed)

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