I added a redirection to one of the file on my site from:
sites/default/files/download/admin/Hotel%20Management%20System%20VB.NET_.zip
to:
http://www.sourcecodester.com/sites/default/files/download/admin/hotel_m...
But seems the 1st URL does not redirect to the 2nd URL. Because after saving the redirection the above URL become:
sites/default/files/download/admin/Hotel%2520Management%2520System%2520VB.NET_.zip
Please see the difference between %2520 and %20. It should be %20 and not %2520.
I also experience the same problem w/ image on my site that has space. I have already posted this issue at:
http://drupal.org/node/1564382
Any solution to this problem?
Comments
Comment #1
jaydub commentedIf I add the same URLs above using the latest -dev code of Redirect (which doesn't look to be markedly different than 1.0-beta4) I don't see the extra encoding (%2520) but rather see the original %20....
Comment #2
jaypabs commentedIn the database it encodes as %20. The error seems to be in the PHP code. Because I cannot see it redirect using this link:
sourcecodester.com/sites/default/files/download/admin/Hotel%20Management%20System%20VB.NET_.zip
but rather it redirects correctly using this link:
sourcecodester.com/sites/default/files/download/admin/Hotel%2520Management%2520System%2520VB.NET_.zip
please test it in your browser.
the correct URL should be the first URL above and not the latter.
Comment #3
jaypabs commentedPlease see image attached.
Comment #4
jaydub commentedI followed your steps with the latest Redirect code and I do not get the dbl encoding so can you at least try on latest -dev code?
Comment #5
jaypabs commentedMay be this is because of Global Redirect module?
Comment #6
jwilson3Marking as a duplicate of #1451868: Add Redirect form breaks URLs containing spaces or %20, there is a patch on that issue that might be worth testing out.