SPA when user not logged in routes incorrectly

Hi!
I’m working on an SPA website.

I’m using index.php as the login page, and then the SPA home is CustomerHome.php.
So the “home” path is /CustomerHome/
And the Url is /CustomerHome.php

I can log in fine. And, the site is usable as long as I’m logged in.

But, when when I try to go to one of my pages, like /CustomerHome/ when I’m not logged in as a user, it incorrectly takes me to CustomerHome/index.php (i.e. like it’s following that route) instead of ./index.php (i.e. it doesn’t just take me to that page).

Any suggestions?

Community Page
Last updated: