jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.47k stars 739 forks source link

config option will reset the url #3344

Open wwj718 opened 2 months ago

wwj718 commented 2 months ago

before adding config option

    new IDE_Morph().openIn(world);
image

the url is https://127.0.0.1:8000/snap.html#run:http://wwj718.github.io/post/img/snap-eclipse.xml

After adding config option:

    new IDE_Morph({lang: "zh_CN", noCloud: true}).openIn(world);
image

The content after the hashtag in the URL will disappear: https://127.0.0.1:8000/snap.html#

jmoenig commented 2 months ago

Thank you! I'll investigate...

jmoenig commented 2 months ago

hmm... this seems to be a somewhat "hairy" issue. I'm seeing a bunch of complicated tweaks from people who feel strongly about using Snap in their localized versions, and I'm afraid to touch them. I'm not even sure if this behavior might not have been introduced by someone on purpose...

wwj718 commented 2 months ago

Thank you for your investigation!

I'm not sure if it's a feature or a bug. I encountered the following complaints from users:

  1. After refreshing browser(Want to return to the original state of the project), it will no longer be the previous project.
  2. Unable to share the project to others with the url