Closed (fixed)
Project:
Path redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 13:06 UTC
Updated:
24 Aug 2010 at 04:30 UTC
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
Comment #1
gpk commentedActually seeing how old beta3 is now I'd better try out beta4 first..
Comment #2
dave reidDid beta4 work for you?
Comment #3
firebird commentedJust 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?
Comment #4
firebird commentedHmm. I guess I should've changed the status when I posted my comment?
Comment #5
dave reidCan you please post the complete 'From' and 'To' URLs you are using? Also please check you are using the latest code.
Comment #6
firebird commentedTested 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.
Comment #7
dave reidThis 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.
Comment #8
wiredescape commented-bump-
Having same issue with spaces in 'to' URL not validating.
Comment #9
dave reidComment #10
dave reidThe 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.