accessing url query params in astro.js

16-06-25

%

The documentation was not super clear on this one. I got side tracked by Astro.params for a long time.

const page = Number(Astro.url.searchParams.get("page") ?? "1");

- [ astro]

all snippets