News for hackers. Stuff that matters.
Re:People like me are why you shouldn't run a hosting company by mhio on Saturday December 23, 2023 @12:49AM (#38741967)
I don't follow, Why would hash based routing not use the history API?

I'm aware of the choice between path based routing, and hash based routing, which has some server side implications.

The History API manages entries in the client history, which I always thought a hash based router would still need to use. Maybe because a hash based router can work single page on the client without having to fake real resource paths?

edit: I'm only familiar with the vue side, but vue-router relies on the same code for both, I can only see minimal differences for the `#`, not much for the history management.

https://github.com/vuejs/router/blob/110c86929ac92e2428d8d49...

Re:People like me are why you shouldn't run a hosting company by no_wizard on Saturday December 23, 2023 @02:27PM (#38747255)
It’s more about the convenience features and melding of the two methods not so much that the underlying API prevents them from working together. Vue router doesn’t have a mixed mode for instance