Cleanup, now redirects work again #2
@ -46,14 +46,12 @@ document.getElementById("question_form").addEventListener("submit", function (ev
|
||||
// code to handle proper redirection after submit
|
||||
console.log('Response:', response);
|
||||
// check if response is a redirect
|
||||
/*
|
||||
if (response.redirected) {
|
||||
console.log("Redirecting to:", response.url);
|
||||
window.location.href = response.url; // Redirect to the new page
|
||||
} else {
|
||||
console.log("No redirect response received.");
|
||||
}
|
||||
*/
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error:', error);
|
||||
|
Loading…
Reference in New Issue
Block a user