Skip to content

Commit 9a884e4

Browse files
authored
url.intended as highest priority
1 parent 6ffac24 commit 9a884e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FilamentDevelopersLogin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ public function login(Panel $panel, FilamentDeveloperLoginsPlugin $plugin, strin
5050
session()->regenerate();
5151

5252
return redirect()
53-
->to($plugin->getRedirectTo() ?? $panel->getUrl());
53+
->to(session('url.intended') ?? $plugin->getRedirectTo() ?? $panel->getUrl());
5454
}
5555
}

0 commit comments

Comments
 (0)