MaxBittker / sandspiel

Creative cellular automata browser game
https://sandspiel.club
MIT License
2.97k stars 199 forks source link

URL and ID of old posts aren't the same #234

Open labbo-lab opened 1 year ago

labbo-lab commented 1 year ago

this breaks the reply system since it gets the id instead of the URL

example: https://us-central1-sandtable-8d0f7.cloudfunctions.net/api/creations/1gdrmxX5BQCLFrdCWuaQ has an id of 26b7f9f3abf0db0b819baf2e549d2707 but a URL is https://sandspiel.club/#1gdrmxX5BQCLFrdCWuaQ

Sandspiel tries to use the id as the URL, calling for https://us-central1-sandtable-8d0f7.cloudfunctions.net/api/creations/26b7f9f3abf0db0b819b which returns {"errorCode":404,"errorMessage":"submission '26b7f9f3abf0db0b819b' not found"}