79217576

Date: 2024-11-23 10:06:05
Score: 1.5
Natty:
Report link

You have to redirect using "window.location.href" function Like

var redirectUrl = 'path of the page you want to redirect' inside this condition
if (response.status === 200) {
    let data = response.data;
    console.log(data);  // <- How do I redirect here?
    window.location.href = redirectUrl;
}
Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kaushal Patel