Closed twentyrogersc closed 1 year ago
Currently, any query string set on the redirect path is not preserved when redirected.
Current: /?foo=bar -> /intl/en/ Expected: /?foo=bar -> /intl/en/?foo=bar
/?foo=bar
/intl/en/
/intl/en/?foo=bar
# Follows github.com/google/gae-secure-scaffold-python3/blob/master/examples/language-redirect/main.py app = securescaffold.create_app(__name__) app.add_url_rule("/", "lang_redirect", securescaffold.views.lang_redirect) app.config["LOCALES"] = ["en"] app.config["LOCALES_REDIRECT_TO"] = "/intl/{locale}/"
Issue
Currently, any query string set on the redirect path is not preserved when redirected.
Behaviour
Current:
/?foo=bar
->/intl/en/
Expected:/?foo=bar
->/intl/en/?foo=bar
Setup