fix(routing): avoid nested hashes in shared links (#1185)

This commit is contained in:
Tommaso Casaburi
2026-07-11 00:09:30 +07:00
committed by GitHub
parent 1e9cdab9a6
commit e5e46907d6
23 changed files with 184 additions and 96 deletions
@@ -53,7 +53,7 @@ class MockFileReader {
const LocationProbe = () => {
const location = useLocation();
return <div data-testid='location'>{location.pathname + location.hash}</div>;
return <div data-testid='location'>{location.pathname + location.search + location.hash}</div>;
};
let root: Root;
@@ -349,7 +349,7 @@ describe('AccountSettings', () => {
expect(localStorage.getItem('importedAccountAddress')).toBe('0x999');
expect(hookMocks.setActiveAccount).toHaveBeenCalledWith('Imported');
expect(alertSpy).toHaveBeenCalledWith('Imported Imported');
expect(getLocationText()).toBe('/subs/settings#account-settings');
expect(getLocationText()).toBe('/subs/settings?section=account-settings');
});
it('preserves explicit HTTP routers when importing an account backup', async () => {