I am doing some bugfixing for another developers React app and I have run into something I dont fully understand. When a user registers on the application, it should redirect them to the Login page, but instead it is showing a text box saying "No Content" and not redirecting anywhere.
if (res.status == 204 || res.statusText == "No Content") {
setSessionCookie("")
window.location.reload(); }
From what i can tell this small snippet seems to be what should redirect but it seems to only be reloading the same page? I dont know if I am looking in the complete wrong place or not. Help please