Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(web): preserve memory routes in albums redirect guard

AmanRajSinghMouryafbdcc5145343
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index d7e13deac6..d28bed14a3 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -109,12 +109,14 @@ const Page: React.FC = () => {
}
const albumsURL = new URL(albumsAppOrigin());
- currentURL.pathname = router.pathname;
+ const isMemoryRoute =
+ currentURL.pathname === "/memory" ||
+ currentURL.pathname.startsWith("/memory/");
if (
(shouldOnlyServeAlbumsApp ||
currentURL.host == albumsURL.host) &&
currentURL.pathname != "/shared-albums" &&
- currentURL.pathname != "/memory"
+ !isMemoryRoute
) {
const end = currentURL.hash.lastIndexOf("&");
const hash = currentURL.hash.slice(