gigya / drupal8

Gigya Drupal 9/10 GConnector
GNU General Public License v2.0
4 stars 15 forks source link

login redirect doesn't redirect to correct locale #103

Open johnyang90 opened 3 years ago

johnyang90 commented 3 years ago

Hi, I impemented the Gigya login to my drupal site, my site has 2 languages (EN & MS), but when users login from MS site, they were redirected back to the site in EN. How could we make it to redirect based on the language before user login?

johnyang90 commented 3 years ago

Forgot to mention this is on Drupal 8 Gigya module.

bmunslow commented 2 years ago

I was able to fix this issue by implementing hook_gigya_post_login_redirect_alter() in a custom module and appending the prefix of the current language to the redirect URL.

amansrivastava commented 8 months ago

This PR https://github.com/gigya/drupal8/pull/147 fixes this issue. It adds the locale prefix in the redirect URL for both login and logout.