feat(navigation): persist view params customisation

This commit is contained in:
Carlos Valente
2026-07-10 17:32:52 +00:00
parent 6bcfd87851
commit f39892dc6e
8 changed files with 312 additions and 32 deletions
+6 -1
View File
@@ -37,7 +37,12 @@ export function handleLinks(
event?.preventDefault();
const destination = new URL(externalServerUrl);
destination.pathname = externalBaseURI ? `${externalBaseURI}/${location}` : location;
// split off any query string so it is not encoded into the pathname
const [pathname, search] = location.split('?');
destination.pathname = externalBaseURI ? `${externalBaseURI}/${pathname}` : pathname;
if (search) {
destination.search = search;
}
openLink(destination.toString());
}