[ticket/11997] Allow redirects to parent folders like previously

Redirects to parent folders were possible with the previous redirect function.
This change will allow these redirects again.

PHPBB3-11997