Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Support URL slugs in share app for better readability

Anand Baburajand4e44c6a1624
diff --git a/web/apps/share/src/services/file-share.ts b/web/apps/share/src/services/file-share.ts
index c7d1a6198e..9f360254c7 100644
--- a/web/apps/share/src/services/file-share.ts
+++ b/web/apps/share/src/services/file-share.ts
@@ -22,7 +22,7 @@ import type {
export const extractFileKeyFromURL = async (
url: URL,
): Promise<LinkKeyMaterial | null> => {
- const hashValue = url.hash.slice(1); // Remove '#' prefix
+ const hashValue = url.hash.slice(1).split('-')[0]; // Remove '#' prefix and take part before hyphen
if (!hashValue) return null;
try {