grav-plugin-login icon indicating copy to clipboard operation
grav-plugin-login copied to clipboard

Authorization on multi-language site, wrong redirect url

Open lufog opened this issue 6 years ago • 4 comments

After authorization on the site, I get to /en/en instead of /en


Grav v1.7.0-beta.4 Login v3.0.3

lufog avatar Jul 09 '19 08:07 lufog

Can be reproduced with:

plugins/login.yaml

enabled: true
route: /login
redirect_to_login: true
redirect_after_login: '/'

system.yaml

languages:
  supported:
    - en
  default_lang: en
  include_default_lang: true

mahagr avatar Jul 09 '19 15:07 mahagr

There is still an issue if referrer fallback is getting used. It contains the language prefix.

mahagr avatar Jul 09 '19 16:07 mahagr

The issue is still here :

  • I created my site with Grav 1.7.5, and didn't have the issue and then I updated to the latest 1.7.13, and the issue appears.

raph31t avatar Apr 27 '21 19:04 raph31t

See #279

dexterxx-pl avatar Jul 21 '21 13:07 dexterxx-pl