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 Aug 24, 2024
1 parent b7c179d commit 3361cd7
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() && str_starts_with($previousUrl, url())) {
if (!session()->has('url.intended') && $previousUrl && $previousUrl !== url()->current() && str_starts_with($previousUrl, url('/'))) {
session(['url.intended' => $previousUrl]);
}
}
Expand Down

0 comments on commit 3361cd7

Please sign in to comment.