Hotfix app.php redirection url generation

Dirty fix, needs a proper solution