diff --git a/src/Actions/Authentication.php b/src/Actions/Authentication.php index f7db8172..095419c7 100644 --- a/src/Actions/Authentication.php +++ b/src/Actions/Authentication.php @@ -556,7 +556,7 @@ public function onLogin(): void } if (null !== $error) { - wp_redirect('/'); + wp_redirect(get_site_url()); exit; } @@ -587,7 +587,7 @@ public function onLogin(): void public function onExchangeFailed(Throwable $_) { // Custom hook ('auth0_token_exchange_failed') to register when token exchange fails. - wp_redirect('/'); + wp_redirect(get_site_url()); exit; }