I'm running into an issue where redirects aren't successful if the URL for the original destination page contains spaces (either raw spaces or encoded as a %20 entity). The problem appears to be that Drupal rewrites the destination URL before CustomError gets it, and any %20 entities are converted to raw spaces. Since CustomError uses the space character as a delimiter, I can't embed spaces in the URL mapping list and so the mapping never matches.

I've created a patch to take the original destination URL and replace spaces with %20 before checking for a match.

CommentFileSizeAuthor
customerror.module.patch531 byteselally

Comments

kbahey’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Fixed

Thank you. Committed.

It should be in the -dev version tonight.

Status: Fixed » Closed (fixed)

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

  • Commit 2d236b4 on 6.x-1.x, 8.x-1.x by kbahey:
    #403792 by elally, handle cases where there are spaces in the URL