feat(login): add redirect parameter to login links for better user experience
This commit is contained in:
@@ -26,7 +26,7 @@ export default async function Dashboard({ searchParams }) {
|
||||
|
||||
if (!ability.can("access", "Dashboard") || !token) {
|
||||
removeToken();
|
||||
return redirect("/login");
|
||||
return redirect("/login?redirect=/dashboard");
|
||||
}
|
||||
|
||||
// The userInfo cookie holds the real user uuid; the standalone `uuid` cookie
|
||||
|
||||
Reference in New Issue
Block a user