Commit 7921ef17 authored by Romain Casati's avatar Romain Casati
Browse files

Fix: params from and script conflict.

parent fe655038
Pipeline #358986 passed with stages
in 3 minutes and 34 seconds
......@@ -3022,6 +3022,7 @@ define([
const component = JSON.stringify(this.toIpynb());
const url = new URL(window.location.href);
url.hash = "";
url.searchParams.delete("from"); // take care of collapsing params
url.searchParams.set(key, encodeURIComponent(component).replace(/\(/g, '%28').replace(/\)/g, '%29'));
return url.href;
Markdown is supported
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