Skip to content
New issue

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

Set application home URI to /dashboard #181

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

nikolaynikolaevn
Copy link
Contributor

At the moment, when email verification is enabled on the API/Next.js stack, the email verification links with the default URI structure (http://localhost:8000/verify-email/xx/xx?expires=xx&signature=xx) redirect to http://locahost:3000/home?verified=1 which does not exist and thus, a 404 page gets rendered.

This MR sets the application home URI to /dashboard as a more reasonable default value since the /home URI does not exist by default but /dashboard exists on the Breeze Next.js example app. Alternatively, this could be set to / as this URL should be available on most apps. This then will be used by the VerifyEmailController for redirection to config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'.

Set the application home to /dashboard since the /home URI does not exist by default but /dashboard exists on the Breeze Next.js example app. Alternatively, this could be set to "/" as this URL should be available on most apps. This then will be used by the VerifyEmailController for redirection to config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'.
@taylorotwell taylorotwell merged commit 163fdc8 into laravel:1.x Aug 15, 2022
slimani-dev pushed a commit to slimani-dev/breeze that referenced this pull request Jan 21, 2023
Set the application home to /dashboard since the /home URI does not exist by default but /dashboard exists on the Breeze Next.js example app. Alternatively, this could be set to "/" as this URL should be available on most apps. This then will be used by the VerifyEmailController for redirection to config('app.frontend_url').RouteServiceProvider::HOME.'?verified=1'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants