From e0d43d4ae9c301d4ab8b568ab5c220fad7775969 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 17 Jan 2022 12:03:05 +0100 Subject: [PATCH] clean feed / list url --- pages/export.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/export.vue b/pages/export.vue index 8e92eb3c..948b3903 100644 --- a/pages/export.vue +++ b/pages/export.vue @@ -142,11 +142,11 @@ export default { }, link () { - const typeMap = ['rss', 'ics', 'list'] + const typeMap = ['rss', 'ics'] const params = [] if (this.filters.tags.length) { - params.push(`tags=${this.filters.tags.join(',')}`) + params.push(`tags=${this.filters.tags.map(encodeURIComponent).join(',')}`) } if (this.filters.places.length) { @@ -157,7 +157,7 @@ export default { params.push('show_recurrent=true') } - return `${this.settings.baseurl}/feed/${typeMap[this.type]}?${params.join('&')}` + return `${this.settings.baseurl}/feed/${typeMap[this.type]}${params.length ? '?' : ''}${params.join('&')}` }, showLink () { return (['rss', 'ics'].includes(this.type))