mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
clean feed / list url
This commit is contained in:
parent
ee26630e4d
commit
e0d43d4ae9
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue