Commit 3f440b24 authored by VAN ZUIJLEN Nils's avatar VAN ZUIJLEN Nils
Browse files

Merge branch 'tmp-fix-bad-message' into 'master'

Hotfix avoiding any message being displayed to the user except "Redirecting".

See merge request !35
parents eae7a203 5164a993
......@@ -33,7 +33,13 @@ function check_confirmation()
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
status_code = this.status;
document.getElementById("val").innerHTML = messages[status_code];
// document.getElementById("val").innerHTML = messages[status_code];
// Temporary disable the changing message, as the value returned in
// production does not seems to match the ones in test. Will investigate
// further after this hotfix.
document.getElementById("val").innerHTML = "Redirection...";
code_type = (""+status_code)[0]
// Check if code is 4XX or 2XX
......
......@@ -107,7 +107,7 @@ def wait_confirmation(request: HttpRequest) -> HttpResponse:
"confirm_request_url": reverse(
"lydia:isconfirmed", args=("00000000-0000-0000-0000-000000000000",)
)[:-36],
"redirect_success_url": reverse("boutique:index"),
"redirect_success_url": reverse("boutique:order_hist"),
},
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment