Created
August 12, 2022 11:53
-
-
Save em230418/8ac43e8ffd91e8ff885d33c9c6c4ad1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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