Commit be970912 authored by Romain Casati's avatar Romain Casati
Browse files

Fix: sharing via URL only account for origin, not for subfolders.

parent f9ccb8fb
Pipeline #343569 passed with stages
in 4 minutes and 34 seconds
......@@ -3012,7 +3012,7 @@ define([
Notebook.prototype.toURL = function (key="ipynb") {
const component = JSON.stringify(this.toIpynb());
const url = encodeURIComponent(component).replace(/\(/g, '%28').replace(/\)/g, '%29');
return window.location + '/?' + key + '=' + url;
return window.location + '?' + key + '=' + url;
};
/** [Basthon]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment