Merge pull request #93 from drumscream/master

Fix a bug with broken breadcrumbs navigation
This commit is contained in:
John Campbell
2019-03-25 17:53:52 -06:00
committed by GitHub

View File

@@ -420,12 +420,12 @@ $(function(){
function renderBreadcrumbs(path) {
var base = "",
$html = $('<div/>').append( $('<a href=#>Home</a></div>') );
$.each(path.split('/'),function(k,v){
$.each(path.split('%2F'),function(k,v){
if(v) {
var v_as_text = decodeURIComponent(v);
$html.append( $('<span/>').text(' ▸ ') )
.append( $('<a/>').attr('href','#'+base+v).text(v_as_text) );
base += v + '/';
base += v + '%2F';
}
});
return $html;