diff --git a/pages/tag/_tag.vue b/pages/tag/_tag.vue index 8ff261c6..0307fa21 100644 --- a/pages/tag/_tag.vue +++ b/pages/tag/_tag.vue @@ -32,7 +32,7 @@ export default { async asyncData ({ $axios, params, error }) { try { const tag = params.tag - const events = await $axios.$get(`/tag/${tag}`) + const events = await $axios.$get(`/tag/${encodeURIComponent(tag)}`) return { events, tag } } catch (e) { error({ statusCode: 400, message: 'Error!' })