Skip to content

Commit bd54959

Browse files
authored
[FrontEnd] Fix callback on network change (#460)
* fix: url on network change * fix: update navigation URL in TopNavbar to include 'global' path
1 parent 3ea117d commit bd54959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/organisms/TopNavbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const TopNavbar = ({ networkId }: TopNavbarProps) => {
1717
const { user } = useUserStore((state) => state);
1818

1919
if (!network) {
20-
redirect(`/${defaultNetworkId}/drive`);
20+
redirect(`/${defaultNetworkId}/explorer/global`);
2121
}
2222

2323
return (
@@ -28,7 +28,7 @@ export const TopNavbar = ({ networkId }: TopNavbarProps) => {
2828
<NetworkDropdown
2929
selected={network}
3030
onChange={(value) => {
31-
window.location.assign(`/${value.id}/drive`);
31+
window.location.assign(`/${value.id}/drive/global`);
3232
}}
3333
/>
3434
{user && <ProfileDropdown />}

0 commit comments

Comments
 (0)