[web-src] Fix error following genre links (add missing url encoding of genre name in url)

This commit is contained in:
chme
2019-02-17 11:33:23 +01:00
parent d51f9b0722
commit 99e0cfe6bb
4 changed files with 9 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ export default {
methods: {
open_tracks: function () {
this.show_details_modal = false
this.$router.push({ path: '/music/genres/' + this.name + '/tracks' })
this.$router.push({ name: 'GenreTracks', params: { genre: this.name } })
},
play: function () {

View File

@@ -71,7 +71,7 @@ export default {
methods: {
open_genre: function () {
this.show_details_modal = false
this.$router.push({ path: '/music/genres/' + this.genre })
this.$router.push({ name: 'Genre', params: { genre: this.genre } })
},
play: function () {