Skip to content
Snippets Groups Projects
Verified Commit c371fe36 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed random stuff (redirection and broken absoluteURl)

parent 697ea24b
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,9 @@ export default {
if (relativeUrl.startsWith('http')) {
return relativeUrl
}
if (state.instanceUrl.endsWith('/') && relativeUrl.startsWith('/')) {
relativeUrl = relativeUrl.slice(1)
}
return state.instanceUrl + relativeUrl
}
},
......
......@@ -93,7 +93,7 @@ export default {
let url = 'playlists/' + this.id + '/'
axios.get(url).then((response) => {
self.playlist = response.data
axios.get(url + 'tracks').then((response) => {
axios.get(url + 'tracks/').then((response) => {
self.updatePlts(response.data.results)
}).then(() => {
self.isLoading = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment