Removing global variable, making everything base slash
This commit is contained in:
@ -1672,7 +1672,7 @@ const MopidyMiddleware = (function(){
|
||||
key: action.key,
|
||||
new_key: response.uri
|
||||
});
|
||||
this.props.history.push(global.baseURL+'playlist/'+encodeURIComponent(response.uri));
|
||||
this.props.history.push('/playlist/'+encodeURIComponent(response.uri));
|
||||
}
|
||||
|
||||
store.dispatch(uiActions.createNotification({type: 'info', content: 'Playlist saved'}));
|
||||
|
||||
@ -1510,9 +1510,9 @@ export function getPlaylist(uri){
|
||||
var description = null
|
||||
if (response.description){
|
||||
description = response.description
|
||||
description = description.split('<a href="spotify:artist:').join('<a href="#'+global.baseURL+'artist/spotify:artist:')
|
||||
description = description.split('<a href="spotify:album:').join('<a href="#'+global.baseURL+'album/spotify:album:')
|
||||
description = description.split('<a href="spotify:user:').join('<a href="#'+global.baseURL+'user/spotify:user:')
|
||||
description = description.split('<a href="spotify:artist:').join('<a href="#'+'/artist/spotify:artist:')
|
||||
description = description.split('<a href="spotify:album:').join('<a href="#'+'/album/spotify:album:')
|
||||
description = description.split('<a href="spotify:user:').join('<a href="#'+'/user/spotify:user:')
|
||||
}
|
||||
|
||||
var tracks = helpers.formatTracks(response.tracks.items);
|
||||
|
||||
Reference in New Issue
Block a user