Skip to content

Commit 0da9648

Browse files
authored
Merge pull request #3905 from KGHustad/breadcrumb-root-url-fix
Prefix base URL to breadcrumb root URL
2 parents 4650dab + 076acf6 commit 0da9648

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ define([
382382
var breadcrumb = $('.breadcrumb');
383383
breadcrumb.empty();
384384
var list_item = $('<li/>');
385-
var root = $('<li/>').append('<a href="/tree"><i class="fa fa-folder"></i></a>').click(function(e) {
385+
var root_url = utils.url_path_join(that.base_url, '/tree');
386+
var root = $('<li/>').append('<a href="' + root_url + '"><i class="fa fa-folder"></i></a>').click(function(e) {
386387
// Allow the default browser action when the user holds a modifier (e.g., Ctrl-Click)
387388
if(e.altKey || e.metaKey || e.shiftKey) {
388389
return true;

0 commit comments

Comments
 (0)