We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using useAuthenticatedBlitzContext in the app router, the next url parameter is not set after redirection.
next
Create /app/my-page.tsx
import { Metadata } from "next"; import { useAuthenticatedBlitzContext } from "src/blitz-server"; export const metadata: Metadata = { title: "My Page" }; export default async function MyPage() { await useAuthenticatedBlitzContext({ redirectTo: "/auth/login" }); return ( <div> My Page </div> ); }
and open http://localhost:3000/my-page (while NOT being authenticated).
You will see that you do get redirected to /auth/login but the next url parameter is missing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the problem?
When using useAuthenticatedBlitzContext in the app router, the
next
url parameter is not set after redirection.What are detailed steps to reproduce this?
Create /app/my-page.tsx
and open http://localhost:3000/my-page (while NOT being authenticated).
You will see that you do get redirected to /auth/login but the
next
url parameter is missingThe text was updated successfully, but these errors were encountered: