Fix #470: Properly encode Wikipedia and lyrics search urls

This commit is contained in:
Eliot Berriot 2018-10-20 16:14:59 +02:00
parent 3a5a446509
commit a8f7893def
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 5 additions and 4 deletions

View file

@ -102,7 +102,7 @@ export default {
}
},
wikipediaUrl () {
return 'https://en.wikipedia.org/w/index.php?search=' + this.album.title + ' ' + this.album.artist.name
return 'https://en.wikipedia.org/w/index.php?search=' + encodeURI(this.album.title + ' ' + this.album.artist.name)
},
musicbrainzUrl () {
return 'https://musicbrainz.org/release/' + this.album.mbid