diff --git a/pages/collection/_collection.vue b/pages/collection/_collection.vue index eb410bc6..5dd40687 100644 --- a/pages/collection/_collection.vue +++ b/pages/collection/_collection.vue @@ -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)