diff --git a/app/common/gristUrls.ts b/app/common/gristUrls.ts index a6eb1283..55521618 100644 --- a/app/common/gristUrls.ts +++ b/app/common/gristUrls.ts @@ -1038,7 +1038,7 @@ export function buildUrlId(parts: UrlIdParts): string { // may be in a docId (leaving just the hyphen, which is permitted). The limits // could be loosened, but without much benefit. const codedSnapshotId = encodeURIComponent(parts.snapshotId) - .replace(/[_.!~*'()]/g, ch => `_${ch.charCodeAt(0).toString(16).toUpperCase()}`) + .replace(/[_.!~*'()-]/g, ch => `_${ch.charCodeAt(0).toString(16).toUpperCase()}`) .replace(/%/g, '_'); token = `${token}~v=${codedSnapshotId}`; }