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

Maintenance plugin with multiple languages

Open juanfcocontreras opened this issue 7 years ago • 1 comments

My website is multilanguage and my home url is like:

http://server/app

If I try to login in that url everything works as expected.

Nevertheless, if I stay at the site without doing anything, I'm logged out and I have to login again. In that case the url is changed to the following ones according to the language I selected in the web:

http://server/app/en http://server/app/es

In those urls, no matter I input right credentials, I'm always prompt to login again.

It seems to be solved by changing in file login-form.html.twig the line:

<form method="post" action="{{ base_url_relative ~ uri.path }}">

by:

<form method="post" action="{{ page.url }}">

I don't know if this is the best way.

juanfcocontreras avatar Jul 04 '17 09:07 juanfcocontreras

To me this fix sounds correct, @rhukster what do you think?

NicoHood avatar Dec 10 '20 22:12 NicoHood