1

I am working on a data list page that uses some filters (some select boxes with multiple value selection)

I need to be able to deep link this results so I need to pass all the params to the URL

if I pass a multilevel object (and not just key:value) pairs, I get [object Object] in the URL which is not good.

what would be the correct way to handle this? JSON.stringify?

DS_web_developer
  • 3,622
  • 13
  • 52
  • 83

1 Answers1

1

Yes JSON.stringify and How to encode a query string so that it is the value of another query string in javascript? to make it a valid query value.

See also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent

Community
  • 1
  • 1
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567