Skip to content

Conversation

@skipkayhil
Copy link
Contributor

Fixes #7

Here's my first take: make a fake URL and then get path and searchParams from it. I don't really like the fake url in the long run but I think it's the best solution right now

I was curious if the path that gets passed around could be replaced by a full URL but the to prop in Link is the origin of the parameter. So for that to work, the full URL including the to would have to be known by the Link or it would have to be added somewhere along the way (after TriggerPageLoad and before bundle.Init)

@loteoo
Copy link
Owner

loteoo commented Oct 2, 2019

Sorry for the delay, I wanted to test properly before merging, this works perfectly thanks!

@loteoo loteoo merged commit 4cb0247 into loteoo:master Oct 2, 2019
@skipkayhil skipkayhil deleted the remove-query-string branch October 2, 2019 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace query-string with URLSearchParams

2 participants