3 ms·
URL based state is fine but you should use “replace” or “replaceState” so that each new location isn’t considered a new history page: https://developer.mozilla
by koolba 5y ago
URL based state is fine but you should use “replace” or “replaceState” so that each new location isn’t considered a new history page:
https://developer.mozilla.org/en-US/docs/Web/API/Location/replace https://developer.mozilla.org/en-US/docs/Web/API/Location/re...
https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
- neet-vc 5y agoRight, I was using CSS :target and plain links without click handlers.