diff --git a/components/Account.php b/components/Account.php index 5113cbb..36e7899 100644 --- a/components/Account.php +++ b/components/Account.php @@ -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]); } }