From 394a575dcffa043fa94a308bda30ce8b3c573b5d Mon Sep 17 00:00:00 2001 From: "Afshin T. Darian" Date: Thu, 1 Apr 2021 16:08:09 +0100 Subject: [PATCH] Fix Handling of Encoded Paths in Save As Dialog --- 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 4765ee9da4..606851b965 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'))