From 2cfff07a39fa486a3f05c26b400fa26e1802a053 Mon Sep 17 00:00:00 2001 From: Afshin Taylor Darian Date: Thu, 1 Apr 2021 17:28:51 +0100 Subject: [PATCH] Fix Handling of Encoded Paths in Save As Dialog (#6030) --- notebook/static/notebook/js/notebook.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 4765ee9da..606851b96 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -2867,6 +2867,7 @@ define([ var that = this; var current_dir = $('body').attr('data-notebook-path').split('/').slice(0, -1).join("/"); current_dir = current_dir? current_dir + "/": ""; + current_dir = decodeURIComponent(current_dir); var dialog_body = $('
').append( $('

').addClass('save-message') .text(i18n.msg._('Enter a notebook path relative to notebook dir'))