Closed kaisermann closed 5 years ago
After some debugging in a project that uses page.js, I also arrived at the conclusion that the page.base
should actually be dirname(location.pathname)
. That way, relative links like <a href=foo>foo</a>
would resolve to the same route, for both hash and non-hash based routing.
Thus I am curious what caused this behavior to be reverted. Can you share any insights @kaisermann?
Nvm, I figured out that changing the base as described above would break all popstate and manually triggered navigation.
This was my bad in #514. I (wrongly) assumed the base path should be the
directory
path forhashbang: true
and protocolfile:
, when it should be the actual full path of the page file (with i.e.index.html
)