Updated the patch on ticket 15552 to work with the latest trunk, and incorporated the comments by jezdez in changing the code's location.
Ensure that LOGIN_URL can take named URLs.
Remove unused force_str function import
Add tests for the resolve_url function and remove the overzealous URL…
… feel heuristic
Committed in a78dd10 - thanks @ericflo