Re:Chrome will Soon Let You Share Links to a Specific Word o...
by bokan on Friday February 15, 2019 @12:04PM
(#19172549)
> Would you append the & to the fragment, or to the query? If to the fragment couldn’t that affect routing for SPAs?
To the fragment. Tt could, depending on how the app was written. Is there a framework or some common techniques that use this I could read-up on?
Re:Chrome will Soon Let You Share Links to a Specific Word o...
by codezero on Friday February 15, 2019 @12:21PM
(#19172727)
There was a time several spa frameworks used explicit hash routing rather than url-like push state but I don’t have sources handy. I thought angular was one of them but they may have done away with this behavior.
I work in analytics so I’ve seen things like UTM params get couched into the hash, breaking parsing, so at least it’s something to keep an eye out for.
To be clear, I agree that this format is exceedingly unlikely to collide with real fragments, but still seems like there is a safer approach.