Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Notebook
Commits
be970912
Commit
be970912
authored
Oct 05, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
notebook/static/notebook/js/notebook.js
View file @
be970912
...
...
@@ -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]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment