ampproject / ampproject/amphtml
amp-script: How to get search params in amp-script?
Open
needs sizing
Stale
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
I am using amp-script to populate data in amp-list, and want to get query parameter 'id'. I have tried URL Search Params but the console says URLSearchParams is not defined. Need help regarding this.

Contributor guide
Assessment
This issue has not been assessed yet.