Skip to content

Commit

Permalink
Merge pull request #3905 from KGHustad/breadcrumb-root-url-fix
Browse files Browse the repository at this point in the history
Prefix base URL to breadcrumb root URL
  • Loading branch information
minrk authored Sep 13, 2018
2 parents 4650dab + 076acf6 commit 0da9648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/static/tree/js/notebooklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ define([
var breadcrumb = $('.breadcrumb');
breadcrumb.empty();
var list_item = $('<li/>');
var root = $('<li/>').append('<a href="/tree"><i class="fa fa-folder"></i></a>').click(function(e) {
var root_url = utils.url_path_join(that.base_url, '/tree');
var root = $('<li/>').append('<a href="' + root_url + '"><i class="fa fa-folder"></i></a>').click(function(e) {
// Allow the default browser action when the user holds a modifier (e.g., Ctrl-Click)
if(e.altKey || e.metaKey || e.shiftKey) {
return true;
Expand Down

0 comments on commit 0da9648

Please sign in to comment.