[ticket/11997] Add user's page dir to redirect path and fix unit tests for it

The user's page directory needs to be added to the redirect URL for proper
redirects outside of the forum root. Fix the unit tests accordingly.

PHPBB3-11997