From 076acf6a981fede12c1bcda1f7e6da2f49d785c4 Mon Sep 17 00:00:00 2001 From: Kristian Gregorius Hustad Date: Mon, 10 Sep 2018 23:41:38 +0200 Subject: [PATCH] Prefix base URL to breadcrumb root URL The base URL was only prefixed to the breadcrumbs following the root. See https://github.com/jupyterhub/jupyterhub/issues/2137 for problem description. --- notebook/static/tree/js/notebooklist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index ab3e47ef7..444eb6ad2 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -382,7 +382,8 @@ define([ var breadcrumb = $('.breadcrumb'); breadcrumb.empty(); var list_item = $('
  • '); - var root = $('
  • ').append('').click(function(e) { + var root_url = utils.url_path_join(that.base_url, '/tree'); + var root = $('
  • ').append('').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;