News for hackers. Stuff that matters.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by blattimwind on Friday February 15, 2019 @09:51AM (#19171313)
pushState is bad for many use cases because it completely breaks linking.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by roywiggins on Friday February 15, 2019 @11:10AM (#19172008)
It doesn't have to, if you also provide routes on the backend so that pushState URLs actually resolve to a real URL that serves the same content. Or just provide a wildcard route and use JS to detect the URL like you would with hash-based navigation.

It does require more coordination between the front and back-end though.

Re:Chrome will Soon Let You Share Links to a Specific Word o... by blattimwind on Friday February 15, 2019 @01:21PM (#19173322)
I meant using pushState using the state object for something other than caching. If I click on "About us" and this results in pushState({page:"about-us"}, "", "#") then linking just doesn't work any more. It's a regression back to the days of Flash.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by roywiggins on Friday February 15, 2019 @02:04PM (#19173705)
Ah, gotcha. Yes, that's a truly awful way to use it.