From 32557e4807094c7149f6fef1d04935b55ce218eb Mon Sep 17 00:00:00 2001 From: Martin Carl Kopp <6154099+MacJoom@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:02:07 +0200 Subject: [PATCH] Update LoginController.php route needs the parameter false to not create xhtml, otherwise & are created which doesn't work in return --- com_oauthserver/site/src/Controller/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_oauthserver/site/src/Controller/LoginController.php b/com_oauthserver/site/src/Controller/LoginController.php index eef658d..bd6fb38 100644 --- a/com_oauthserver/site/src/Controller/LoginController.php +++ b/com_oauthserver/site/src/Controller/LoginController.php @@ -262,7 +262,7 @@ class LoginController extends BaseController // Build the cleared current uri and encode to pass it to the login form as a callback uri. $return = http_build_query(['return' => base64_encode($uri->toString(['scheme', 'user', 'pass', 'host', 'port', 'path']))]); - $redirect = Route::_('index.php?option=com_users&view=login&' . $return); + $redirect = Route::_('index.php?option=com_users&view=login&' . $return, false); // The current page is not tied to any menu item, so the main page item id will be added to the route. It needs to be removed. $redirect = preg_replace('/((&|&)itemid=\d+)/i', '', $redirect);