We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f76fd15 commit bb1e29eCopy full SHA for bb1e29e
apps/codeimage/src/state/presets/presets.ts
@@ -142,7 +142,7 @@ const PresetStoreDefinition = experimental__defineResource(fetchInitialState)
142
}),
143
copyLink: store.asyncAction((payload: Preset) => {
144
const data = window.btoa(JSON.stringify(payload));
145
- const link = `http://${window.location.host}?share_preset=${data}`;
+ const link = `${window.location.origin}${window.location.pathname}?share_preset=${data}`;
146
return navigator.clipboard.writeText(link);
147
148
syncPreset: store.asyncAction((payload: Preset) => {
0 commit comments