From f80e89465ffc004705d2941301c0ffb6bfd71d1a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 11 Mar 2021 10:31:35 -0500 Subject: [PATCH] update share link on send list copy (#305) --- src/angular/components/send/send.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/angular/components/send/send.component.ts b/src/angular/components/send/send.component.ts index 8592695337e..491c25011e5 100644 --- a/src/angular/components/send/send.component.ts +++ b/src/angular/components/send/send.component.ts @@ -168,11 +168,12 @@ export class SendComponent implements OnInit { } copy(s: SendView) { - let webVaultUrl = this.environmentService.getWebVaultUrl(); - if (webVaultUrl == null) { - webVaultUrl = 'https://vault.bitwarden.com'; + let sendLinkBaseUrl = 'https://send.bitwarden.com/#'; + const webVaultUrl = this.environmentService.getWebVaultUrl(); + if (webVaultUrl != null) { + sendLinkBaseUrl = webVaultUrl + '/#/send/'; } - const link = webVaultUrl + '/#/send/' + s.accessId + '/' + s.urlB64Key; + const link = sendLinkBaseUrl + s.accessId + '/' + s.urlB64Key; this.platformUtilsService.copyToClipboard(link); this.platformUtilsService.showToast('success', null, this.i18nService.t('valueCopied', this.i18nService.t('sendLink')));