Skip to content

Commit df19d4e

Browse files
committed
fix: save absolute url in localStorage
1 parent 733714c commit df19d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/storage.utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const saveBlob = (store) => {
3535
id: Date.now(),
3636
name: generateName({ words: 2 }).spaced,
3737
// eslint-disable-next-line no-restricted-globals
38-
url: `/${location.search}`,
38+
url: location.href,
3939
};
4040
const allBlobs = getAllBlobs();
4141
const blobs = [...(allBlobs || []), newData];

0 commit comments

Comments
 (0)