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

redirect before even render the default layout #2314

Merged
merged 1 commit into from
Jan 6, 2021
Merged

redirect before even render the default layout #2314

merged 1 commit into from
Jan 6, 2021

Conversation

nuernbergerA
Copy link
Contributor

As mentioned by @AdvancedStyle here

Redirect doesn't work if you use a redirect() within mount() in Full-Page components.

I don't think this is related, but I noticed that the target URL isn't always the same

Call Url
$this->redirect('/foo') /foo
redirect('/foo') http://localhost/foo

therefore I used assertStringEndsWith()

@calebporzio calebporzio merged commit 09a95d0 into livewire:master Jan 6, 2021
@calebporzio
Copy link
Collaborator

Thanks Adrian!

@nuernbergerA nuernbergerA deleted the handle-redirect-in-mount-for-route-components branch January 6, 2021 17:59
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.

None yet

2 participants