This commit is contained in:
lesion
2022-12-23 01:17:19 +01:00
parent 0fca21b7d3
commit 064bf46df7

View File

@@ -31,7 +31,7 @@ export default {
async asyncData ({ $axios, params, error }) {
try {
const collection = params.collection
const events = await $axios.$get(`/collections/${collection}`)
const events = await $axios.$get(`/collections/${encodeURIComponent(collection)}`)
return { events, collection }
} catch (e) {
console.error(e)