Fixed random stuff (redirection and broken absoluteURl)
This commit is contained in:
parent
697ea24b79
commit
c371fe3645
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue