Skip to content

Instantly share code, notes, and snippets.

@em230418
Created August 12, 2022 11:53
Show Gist options
  • Save em230418/8ac43e8ffd91e8ff885d33c9c6c4ad1e to your computer and use it in GitHub Desktop.
Save em230418/8ac43e8ffd91e8ff885d33c9c6c4ad1e to your computer and use it in GitHub Desktop.
diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py
index d4f40d72..0c5eeb11 100644
--- a/addons/website/controllers/main.py
+++ b/addons/website/controllers/main.py
@@ -112,7 +112,7 @@ class Website(Home):
if domain_from != domain_to:
# redirect to correct domain for a correct routing map
url_to = werkzeug.urls.url_join(website._get_http_domain(), '/website/force/%s?isredir=1&path=%s' % (website.id, path))
- return request.redirect(url_to)
+ return request.redirect(url_to, local=False)
website._force()
return request.redirect(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment