From d536499a089005cb4fde04a53312e3ef4982b128 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 5 Dec 2022 18:18:02 +0100 Subject: [PATCH] minor --- pages/tag/_tag.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!' })