What kind of error do you get? Do you try this in preview mode or published mode? I believe you should test it in published mode and also do a console.log(query); so you can inspect that.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| wixLocation to get and use HTTP query? | 7 | 2701 | March 10, 2018 | |
| Existing product store and wix-code | 9 | 721 | January 11, 2018 | |
| Need help with wixlocation | 11 | 585 | June 13, 2018 | |
| wixLocation url and query parameters not working | 0 | 112 | December 20, 2021 | |
| Dynamically Add URL parameters to external URL | 5 | 2632 | October 24, 2017 |