Commit 1404f18c authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '871-artist-url' into 'master'

Resolve "Broken link to artist page in album and track header"

See merge request funkwhale/funkwhale!809
parents 0524c6db 18f0ed46
Fixed broken URL to artist and album on album and track pages (#871)
......@@ -192,7 +192,7 @@ export default {
subtitle () {
let route = this.$router.resolve({name: 'library.artists.detail', params: {id: this.object.artist.id }})
let msg = this.$npgettext('Content/Album/Header.Title', 'Album containing %{ count } track, by <a class="internal" href="%{ artistUrl }">%{ artist }</a>', 'Album containing %{ count } tracks, by <a class="internal" href="%{ artistUrl }">%{ artist }</a>', this.object.tracks.length)
return this.$gettextInterpolate(msg, {count: this.object.tracks.length, artist: this.object.artist.name, artistUrl: route.location.path})
return this.$gettextInterpolate(msg, {count: this.object.tracks.length, artist: this.object.artist.name, artistUrl: route.href})
}
},
watch: {
......
......@@ -210,11 +210,11 @@ export default {
},
albumUrl () {
let route = this.$router.resolve({name: 'library.albums.detail', params: {id: this.track.album.id }})
return route.location.path
return route.href
},
artistUrl () {
let route = this.$router.resolve({name: 'library.artists.detail', params: {id: this.track.artist.id }})
return route.location.path
return route.href
},
headerStyle() {
if (!this.cover) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment