[fix/redirect_link] Correctly redirect to app.php/portal for now

This does not work yet though, as the redirect() function is unable to handle
redirects to app.php/xyz.