Closed mckaygerhard closed 1 year ago
This code breaks the tests. Users can open the website from another page than the homepage.
Eg: when opening localhost:3000/docs/
with browser routing, the code sets sitePath
to /docs/
, which is obviously incorrect.
Which problem are you trying to solve ? Isn't the default sitePath
enough ?
oh no! you have right.. i noted that and i am making some code refactoring as the picture shows.. wait for me
the idea is that at first try .. launch a user alert to demand configuration, after that we can just tell user that must configure constants
i will close this cos after many test and try, concluded that must be set manually the root site path due security issues..
sitePath
root