Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Do not include querystring when copying url for new credential (#541)
Leendert de Borstf5fb69e756a9
diff --git a/browser-extensions/chrome/src/contentScript/Popup.ts b/browser-extensions/chrome/src/contentScript/Popup.tsindex c790ecf5c..d721f9e9e 100644--- a/browser-extensions/chrome/src/contentScript/Popup.ts+++ b/browser-extensions/chrome/src/contentScript/Popup.ts@@ -238,11 +238,14 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden// Extract favicon from page and get the bytesconst faviconBytes = await getFaviconBytes(document);+ // Take URL from current page but without querystring params+ const serviceUrl = new URL(window.location.href).origin + new URL(window.location.href).pathname;+// Submit new identity to backend to persist in dbconst credential: Credential = {Id: '',ServiceName: serviceName,- ServiceUrl: window.location.href,+ ServiceUrl: serviceUrl,Email: `${identity.emailPrefix}@${domain}`,Logo: faviconBytes ? new Uint8Array(faviconBytes) : undefined,Username: identity.nickName,