URILink for encoding all URIs; fixes #220; current_track now just a URI

This commit is contained in:
James Barnsley
2017-10-27 10:51:48 +13:00
parent a0a674d606
commit e93751a702
22 changed files with 252 additions and 442 deletions

View File

@ -41,7 +41,7 @@ class AlbumGrid extends React.Component{
key={album.uri}
type="album"
item={album}
onClick={e => {hashHistory.push(global.baseURL+'album/'+album.uri)}}
onClick={e => {hashHistory.push(global.baseURL+'album/'+encodeURIComponent(album.uri))}}
onLoad={() => this.handleLoad(album.uri)}
onContextMenu={e => this.handleContextMenu(e,album)}
/>