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?

CommentFileSizeAuthor
#4 snapshot3.png22.67 KBjaydub
#3 incorrect encoding.jpg77.08 KBjaypabs

Comments

jaydub’s picture

If 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....

jaypabs’s picture

In 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.

jaypabs’s picture

StatusFileSize
new77.08 KB

Please see image attached.

incorrect encoding

jaydub’s picture

StatusFileSize
new22.67 KB

I 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?

jaypabs’s picture

May be this is because of Global Redirect module?

jwilson3’s picture

Status: Active » Closed (duplicate)

Marking 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.