Closed pomeh closed 2 months ago
Ah yeah this is just a standard URL encoding issue. Most browsers will correctly substitute ` into
%20` like so:
https://learngitbranching.js.org/?NODEMO&command=level%20remote1
You can just provide this link instead so it doesn't break on other browsers! But I totally get that its a bit ugly of a url. I see you put up the PR to add support, so lets go with that :)
Hello,
Thanks for this amazing work :)
I'm writing some articles on how to start with Git, and I'm willing to point readers to this awesome learning tool.
To keep it simple for readers, I would like to point them directly to one specific level, instead of the "home page" with all levels, but I can't find a permalink for that purpose.
I've tried to use the
command
query arg for that, it's working... almost. With a link likehttps://learngitbranching.js.org/?NODEMO=&command=level intro1
this works, but the problem is the space in the valuelevel intro1
which may be replaced bylevel+intro1
in some browsers or situations, and then lead to an invalid command :cry:To implement that, I was thinking of something like adding a new
level
query parameter, which value can be the same as thelevel
command (intro1
,rampup3
, etc.): eghttps://learngitbranching.js.org/?level=advanced2
Another possible fix I see would be to "unescape" the + sign when the
command
query arg is read, and the + being replaced by a single space. But this may have some unwanted side effects.What do you think about this ?