Skip to content

Redirection Path on Impersonation #3932

Closed Locked Answered by jaxramus
bsormagec asked this question in Ideas & Feature Requests
Discussion options

You must be logged in to vote

I figured out a little workaround by checking impersonation state in my / route:

Route::get('/', function (Request $request, ImpersonatesUsers $impersonator) {
    if ($impersonator->impersonating($request)) {
        return redirect('/nova/resources/leads');
    }

    return view('welcome');
});

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by davidhemphill
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Feature Request implemented Feature Request implemented
3 participants
Converted from issue

This discussion was converted from issue #3839 on April 10, 2022 22:54.