diff --git a/frontend/src/basic/Routes.tsx b/frontend/src/basic/Routes.tsx index 56e4bb13..772f48fe 100644 --- a/frontend/src/basic/Routes.tsx +++ b/frontend/src/basic/Routes.tsx @@ -14,7 +14,7 @@ const Routes: React.FC = () => { useEffect(() => { if (window.AndroidDataRobosats && garage.currentSlot) { const orderPath = window.AndroidDataRobosats.navigateToPage ?? ''; - const [coordinator, orderId] = orderPath.replace('#', '/').split('/'); + const [coordinator, orderId] = orderPath.split('/'); window.AndroidDataRobosats = undefined; if (orderId && coordinator) { diff --git a/frontend/src/basic/TopBar/NotificationsDrawer/NotificationCard/index.tsx b/frontend/src/basic/TopBar/NotificationsDrawer/NotificationCard/index.tsx index 59cd9707..bc251303 100644 --- a/frontend/src/basic/TopBar/NotificationsDrawer/NotificationCard/index.tsx +++ b/frontend/src/basic/TopBar/NotificationsDrawer/NotificationCard/index.tsx @@ -55,7 +55,7 @@ const NotificationCard: React.FC = ({ event, robotHashId, coordinator, se if (slot?.token) { setShow(false); garage.setCurrentSlot(slot.token); - navigateToPage(`order/${orderId.replace('#', '/')}`, navigate); + navigateToPage(`order/${orderId}`, navigate); } } }; diff --git a/frontend/src/basic/TopBar/NotificationsDrawer/index.tsx b/frontend/src/basic/TopBar/NotificationsDrawer/index.tsx index 0d7ace2d..0ad0f4a8 100644 --- a/frontend/src/basic/TopBar/NotificationsDrawer/index.tsx +++ b/frontend/src/basic/TopBar/NotificationsDrawer/index.tsx @@ -150,7 +150,7 @@ const NotificationsDrawer = ({ if (slot?.token) { setShow(false); garage.setCurrentSlot(slot.token); - navigateToPage(`order/${orderId.replace('#', '/')}`, navigate); + navigateToPage(`order/${orderId}`, navigate); } } }; diff --git a/frontend/src/contexts/AppContext.tsx b/frontend/src/contexts/AppContext.tsx index 53e8ec42..c97e1474 100644 --- a/frontend/src/contexts/AppContext.tsx +++ b/frontend/src/contexts/AppContext.tsx @@ -141,7 +141,7 @@ export const AppContextProvider = ({ children }: AppContextProviderProps): React newPage, navigate, ) => { - const pathPage: Page | string = newPage.replace('#', '/').split('/')[0]; + const pathPage: Page | string = newPage.split('/')[0]; if (isPage(pathPage)) { setPage(pathPage); navigate(`/${newPage}`);