Share links are to long #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The share links, as they currently work, are WAY to long and have some problems:
lastOpenedis serialized but never readJSON.stringify, which turns the 128 default snippet into a 286 (+x1.23) json string (no description!); and then processed viabtoa(base32) to a 384 character long string (+x2)https://lang.lapyst.dev/playground/?load=) this produces an ~400 character long url.This is problematic since most browsers only allow 2000 characters for url's, so we need a better way of handeling this.
Ideas:
lastOpened<createdAt>|<lastModified>|<escaped desc>|<code>(Edit: aparently I wrote on the playground about that
btoais already base64... need to check that more closely...)Reduce the front-part. This will most likely be in combination with the baseX encoding step, since it enabled/disables which characters we can use. Ideas would be:
?l=xxx), or using the ENTIRE query param as out data (which might get tricky in some browsers).#xxx).../playground/xxx)lang.lapyst.dev/s/xxx), wheresstands for "snippet" or "share"