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 page to previous URL after asserting authentication #912

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Redirect page to previous URL after asserting authentication #912

merged 1 commit into from
Jul 23, 2021

Conversation

crynobone
Copy link
Member

Authentication assert will require the browser to navigate to /_dusk/user/:id, if user visit a page and then use assertGuest() they need to remember to navigate back to previous page.

Fixes #911 and tested on Laravel Nova dusk tests

Signed-off-by: Mior Muhammad Zaki [email protected]

Authentication assert will require the browser to navigate to
`/_dusk/user/:id`, if user visit a page and then use `assertGuest()`
they need to remember to navigate back to previous page.

Signed-off-by: Mior Muhammad Zaki <[email protected]>
@taylorotwell taylorotwell merged commit 7899e21 into laravel:6.x Jul 23, 2021
@crynobone crynobone deleted the redirect-after-assert branch October 9, 2023 07:12
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.

assertGuest causes NoSuchElementException in the next call
2 participants