[ticket/12261] Remove web root path from login redirect url

The redirect url must be relative to the ucp.php and not relative to the
current page.

http://tracker.phpbb.com/browse/PHPBB3-12261