Search does not navigate correctly for tracks named the same
Steps to reproduce
- Have multiple songs with the same name & different artists/albums.
- Search for the song name, showing search results with multiple tracks with the same name.
- Click the first item. That song page loads.
- Click the other items.
What happens?
The view does not navigate to the other songs in the search results.
What is expected?
The view should change to the correct search result.
Context
Funkwhale version(s) affected: 19.1
The search results seen in the network capture look to be correct (see below). However, setting a breakpoint at onSelect (result, response) { router.push(result.routerUrl) }
the result.routerUrl will always be the first ID.
"tracks":[
{
"id":319,
"mbid":"a3ee1a31-434d-4809-be42-68fa12d7280f",
"title":"For Whom the Bell Tolls",
"album":{
"id":51,
"mbid":"a5bee4eb-38e8-4fdc-b958-f2341ec81d70",
"title":"Live",
"artist":{
"id":13,
"mbid":"788ad31c-bf0c-4a31-83f8-b8b130d79c76",
"name":"Apocalyptica"
}
},
"artist":{
"id":13,
"mbid":"788ad31c-bf0c-4a31-83f8-b8b130d79c76",
"name":"Apocalyptica"
}
},
{
"id":4315,
"mbid":"518383ce-aea6-4942-89e1-639983fb4e32",
"title":"For Whom the Bell Tolls",
"album":{
"id":470,
"mbid":"b1923537-8b51-410f-b8a7-53e2ae81fcd4",
"title":"Creeping Death",
"artist":{
"id":209,
"mbid":"65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab",
"name":"Metallica"
}
},
"artist":{
"id":209,
"mbid":"65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab",
"name":"Metallica"
}
},
{
"id":310,
"mbid":"41572fb4-9dad-4de4-842e-7b06eefa5e57",
"title":"For Whom the Bell Tolls",
"album":{
"id":49,
"mbid":"3ea46c68-59f5-46d1-95ec-3cef0b37ee42",
"title":"Inquisition Symphony",
"artist":{
"id":13,
"mbid":"788ad31c-bf0c-4a31-83f8-b8b130d79c76",
"name":"Apocalyptica"
},
},
"artist":{
"id":13,
"mbid":"788ad31c-bf0c-4a31-83f8-b8b130d79c76",
"name":"Apocalyptica"
}
}
]