Skip to content

Commit

Permalink
encoded spaces as %20 in unshortened shared URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd authored May 11, 2024
1 parent 33f1f03 commit 88cfe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ class IDE {
}
}
if (run) share_link.append("R", "");
return `?${share_link}`;
return `?${share_link}`.replace(/\+/g, '%20');
function encode_coords(lat, lng) {
const coords_cpr = Base64.encodeNum(
Math.round((lat + 90) * 100000) +
Expand Down

0 comments on commit 88cfe1d

Please sign in to comment.