mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
0fd981866b
commit
bce2eb7f96
1 file changed
+2
-1
@@ -52,12 +52,13 @@ export function getExtensionPageUrl(target: PageTarget): string {
|
||||
if (targetPage?.params) {
|
||||
Object.entries(targetPage.params).forEach(([name, param]) => {
|
||||
const paramValue = targetPageParams[name];
|
||||
|
||||
if (param instanceof UrlParam) {
|
||||
pageUrl.searchParams.set(name, param.stringify(paramValue));
|
||||
} else {
|
||||
pageUrl.searchParams.set(name, String(paramValue ?? param));
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
return pageUrl.href.replace(pageUrl.origin, "");
|
||||
|
||||
Reference in new issue
Block a user