Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed May 7, 2024
1 parent d0e2226 commit b7c179d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ protected function makeActivationUrl($code)
protected function setIntendedUrl()
{
$previousUrl = url()->previous();
if (!session()->has('url.intended') && $previousUrl && $previousUrl !== url()->current()) {
if (!session()->has('url.intended') && $previousUrl && $previousUrl !== url()->current() && str_starts_with($previousUrl, url())) {
session(['url.intended' => $previousUrl]);
}
}
Expand Down

0 comments on commit b7c179d

Please sign in to comment.