Skip to content
Snippets Groups Projects
Commit 565a64d7 authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros
Browse files

Patch: Changed default login redirection

parent 3a533157
No related branches found
No related tags found
1 merge request!104Patch: Changed default login redirection
Pipeline #3760620 passed
......@@ -299,7 +299,8 @@
},
"drupal/openid_connect": {
"OIDC roles mapping from JWT https://www.drupal.org/project/openid_connect/issues/3166508": "patches/openid_connect-3166508-role-mapping.patch",
"OIDC autologin (skip Drupal login page) https://www.drupal.org/project/openid_connect/issues/3011413": "patches/openid_connect-3011413-autologin.patch"
"OIDC autologin (skip Drupal login page) https://www.drupal.org/project/openid_connect/issues/3011413": "patches/openid_connect-3011413-autologin.patch",
"OIDC default redirection after login to / instead of /user/{user_id} ": "patches/openid_connect-custom-default-redirection.patch"
},
"drupal/captcha": {
"Fixes CAPTCHAs not loading due to not being able to access font directory https://www.drupal.org/project/captcha/issues/3211385": "patches/captcha-white-image-captcha-3211385-12.patch"
......
diff --git a/src/OpenIDConnectSession.php b/src/OpenIDConnectSession.php
index 836d0e2..62bb09f 100644
--- a/src/OpenIDConnectSession.php
+++ b/src/OpenIDConnectSession.php
@@ -52,7 +52,7 @@ class OpenIDConnectSession {
*/
public function saveDestination() {
$current_path = $this->currentPath->getPath();
- $path = ($current_path == '/user/login') ? '/user' : $current_path;
+ $path = ($current_path == '/user/login') ? '/' : $current_path;
// The destination could contain query parameters. Ensure that they are
// preserved.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment