mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2025-06-07 13:43:05 +03:00
Merge pull request #1 from MacJoom/fix-return-url
Update LoginController.php
This commit is contained in:
commit
6f2db97ad1
@ -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.
|
// 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']))]);
|
$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.
|
// 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);
|
$redirect = preg_replace('/((&|&)itemid=\d+)/i', '', $redirect);
|
||||||
|
Loading…
Reference in New Issue
Block a user