Login partial template override
I'm annoyed by a particular line in the login template The one which forcefully added the query-string to the admin redirection in ecf9f5046f600b772f9319c7a8cbdfd387149e0b
The reason is that, for caching purpose, I'm internally adding a parameter to my requests, like ?_foo=url-encoded-request-uri in order to avoid serving (cached) / for requests to /admin (since both are rewritten to /index.php)
I need this parameter to be transparent to Grav (and not be part of any uri.query) but since I didn't find a way to do that inside Grav's router, I find easier to override that template. Would you mind indicating where could I put my override (in my own theme directory) in order to do so?
(I've to do so, because Grav otherwise throws an INVALID_SECURITY_TOKEN error which, in itself, sounds like a bug. Would be nice to avoid this error when redirect is slightly changed)
Have you considered just disabling Admin Cache? It's a setting in the plugin configuration.
The problem is not related to internal Admin Cache. It's about HTML caching (using Apache mod_cache).
Could we find a solution? Relax the way token are generated or considering uri.query, override the login template from a theme? ...
I think this kind of internal query string parameter should be transparent to Grav nonce generation.