diff --git a/app/common/gristUrls.ts b/app/common/gristUrls.ts index fd1bcf3c..eb69d441 100644 --- a/app/common/gristUrls.ts +++ b/app/common/gristUrls.ts @@ -65,6 +65,7 @@ export interface IGristUrlState { billingTask?: BillingTask; embed?: boolean; style?: InterfaceStyle; + compare?: string; }; hash?: HashLink; // if present, this specifies an individual row within a section of a page. } @@ -256,6 +257,9 @@ export function decodeUrl(gristConfig: Partial, location: Locat // Turn on light style if no style has been specified. if (embed && !state.params!.style) { state.params!.style = 'light'; } } + if (sp.has('compare')) { + state.params!.compare = sp.get('compare')!; + } if (location.hash) { const hash = location.hash; const hashParts = hash.split('.');