From 3361cd76658693b68c5dcbfafab573ce6daa2ec0 Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:58:29 +0100 Subject: [PATCH] Minor fix Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- components/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }