[FIX] web: keep hash when login redirect
The anchor part of the url should be kept when a login redirect is done. introduced by 8f3f9ef46b note: for 8.0 and saas-6
This commit is contained in:
parent
cfbd086b09
commit
0ea89c10b6
|
@ -314,7 +314,7 @@ def login_redirect():
|
||||||
# built the redirect url, keeping all the query parameters of the url
|
# built the redirect url, keeping all the query parameters of the url
|
||||||
redirect_url = '%s?%s' % (request.httprequest.base_url, werkzeug.urls.url_encode(request.params))
|
redirect_url = '%s?%s' % (request.httprequest.base_url, werkzeug.urls.url_encode(request.params))
|
||||||
return """<html><head><script>
|
return """<html><head><script>
|
||||||
window.location = '%sredirect=' + encodeURIComponent("%s");
|
window.location = '%sredirect=' + encodeURIComponent("%s" + location.hash);
|
||||||
</script></head></html>
|
</script></head></html>
|
||||||
""" % (url, redirect_url)
|
""" % (url, redirect_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue