Cloudflare doesn’t treat / as root?
Does cloudflare not treat / as the domain root? I tend to have problems when users go to my domain root. When they try to go to / it automatically redirects them back to the domain root. But my JS doesn't work when it I had my app.get set to /. I had to set it to app.get /home, beause the JS would not work properly when it was set to /. And now I have / to redirect to /home, but that isn't working either. That's a super simple code snippet so I don't think it's my code, however I could be wrong.
2 Replies
Your message is confusing. Are you talking about an empty path? It's in the http spec iirc that empty paths all become
/
(or at the very least, that's how browsers treat it, if you try to go to https://example.com
, the path would still be /
Maybe easier to understand if you link the page with the issue?