Open AGoblinKing opened 5 years ago
Hi, i just made a pr and fixed the problem. the first problem was that you should've used
history.pushState(...);
instead of
history.replaceState(...);
and the second one was that you could use location.href
in clickHandler
function instead of pathname
, search
, and hash
properties.
make sure to inform me if anything was wrong with it.
The filename component of location is lost when you navigate to "/".
EX:
<a href="/example"/>
<a href="/" />
This comes up when using history.back() as well.