Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

set fields based on url params#9

Merged
echappen merged 4 commits intospotlight-3.0from
792-set-fields-based-on-url-params
Nov 4, 2020
Merged

set fields based on url params#9
echappen merged 4 commits intospotlight-3.0from
792-set-fields-based-on-url-params

Conversation

@echappen
Copy link
Copy Markdown

@echappen echappen commented Nov 4, 2020

No description provided.

I went with URLSearchParams over a custom package like query-string because it's a built-in, and with a polyfill it can support IE11.

More info on URLSearchParams
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

Using this polyfill for IE:
https://www.npmjs.com/package/url-search-params-polyfill
This allows users to go to a url with pre-set fields
This uses the built-in URLSearchParams interface for parsing:
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
@echappen echappen changed the title 792 set fields based on url params set fields based on url params Nov 4, 2020
@echappen echappen merged commit 6596a36 into spotlight-3.0 Nov 4, 2020
@echappen echappen deleted the 792-set-fields-based-on-url-params branch November 4, 2020 22:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant