Static deployment : problem with a href to another page?

I have created a very small static deployment with a “a href = ‘page2.html’”

I have used the template for websites ( html / css / js with autorefresh)

Once deployed, when i click on the link to another page2 with relative link, I get a 404 Error

See this repl with an example of page2.html, what is bad in this code ? please note that it is the template only, i have only added a page2.html and the a href line.

It works perfectly on dev mode

I have found that the deployment default is using “dist” as Public Directory.
So I need to put my files in /dist, maybe,
or i can just change to / and it works fine.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.