johannschopplich / kirby-vue3-starterkit

✨ Kirby + Vue SPA starter: automatic routing, i18n, SEO and more!
MIT License
206 stars 19 forks source link

Queries not working #49

Closed Small-Systems closed 2 years ago

Small-Systems commented 2 years ago

Route queries, used for the token for previewing drafts are not being passed correctly into the getPage function. Query needs to be a rest parameter:

async function getPage(id, { revalidate = false, ...query } = {})

johannschopplich commented 2 years ago

Thanks for the feedback! Fixed in https://github.com/johannschopplich/kirby-vue3-starterkit/commit/8391f6c47fa50c69b4e233b8478a2f48888ae981.