else if(language == “en-US” || language == “en-CA” || language == “en-AU”){
window.location.href = “name.webflow.io/en/home”;
}
I’d put it on the custom code textarea has usually and it work fine.
The problem was when I preview the page in Chrome, the script constantly reloads (and so send a lot of requests to the server…).
After investigating I find an issue, but before I had time to try it, I was suddenly logout of my Webflow account…
I’d login back few seconds after, when I was going to custom code section, the script was there without changes. But when I’m trying in my browser, it seems not working (but the script appear in the inspector).
I try different things but impossible to make it work again…
After reflexion, I think maybe Webflow have a kind of requests/ddos protection and banned my script (I don’t know how, unfortunately I’m not an expert in javascript).
Do you think it’s possible ? And if yes, how can I fix it ? Because it was 5 hours the problem appear and it’s not going back…
… are you referring to the preview within the designer? The script tag shouldn’t load there, only when published. Could you share (or DM) your read-only link?
Before I was logged out of my account, even if I put a wrong URL it sent me to a 404 page…
You don’t think Webflow can block the script ? Because before that, the page permanently refreshes cause of the script
You have the redirect script also on https://steerfox.webflow.io/en/home … it should only be on https://steerfox.webflow.io/ … that’s why you have the infinite refresh issue.