Redirect wasn't working properly

This commit is contained in:
2023-10-09 16:35:03 +01:00
parent 148d85121a
commit cf5d107fd5

View File

@@ -69,9 +69,9 @@ class ServicesProvider
$currentUser = $c->authenticator->user();
if ($authorizer->checkAccess($currentUser, 'uri_dashboard')) {
return $response->withHeader('UF-Redirect', $c->router->pathFor('dashboard'));
return $response->withRedirect($c->router->pathFor('dashboard'));
} else {
return $response->withHeader('UF-Redirect', $c->router->pathFor('index'));
return $response->withRedirect($c->router->pathFor('index'));
}
};
};