From 682803d301bb3ccc5e98c7dcb17bfffe98608117 Mon Sep 17 00:00:00 2001 From: marknitek Date: Fri, 16 Jun 2017 20:42:24 +0200 Subject: [PATCH] Load complete local folder structure, fixes #131 --- src/js/components/List.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/components/List.js b/src/js/components/List.js index 691344bd..72824ef5 100755 --- a/src/js/components/List.js +++ b/src/js/components/List.js @@ -21,8 +21,8 @@ class List extends React.Component{ // make sure we haven't clicked a nested link (ie Artist name) if( e.target.tagName.toLowerCase() !== 'a' ){ - hashHistory.push( this.props.link_prefix + uri ); - } + hashHistory.push( this.props.link_prefix + encodeURIComponent(uri) ); + } } handleContextMenu(e,item){ @@ -87,10 +87,10 @@ class List extends React.Component{ if( row.type ) class_name += ' '+row.type return ( -
this.handleClick(e, row.uri)} +
this.handleClick(e, row.uri)} onContextMenu={e => this.handleContextMenu(e,row)} - className={class_name} + className={class_name} key={row_index}> { this.props.columns.map( (col, col_index) => {