3 ms·
Would you append the & to the fragment, or to the query? If to the fragment couldn’t that affect routing for SPAs? To be clear, I agree that this format is exc
by codezero 8y ago
Would you append the & to the fragment, or to the query? If to the fragment couldn’t that affect routing for SPAs?
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.
- bokan 8y ago> 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?
- codezero 8y agoThere 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.
- bokan 8y agoThanks, I'll make sure to dig into that some more!