Add extra slash to username link

This commit is contained in:
Fedor Indutny 2023-08-17 19:07:34 +02:00 committed by Jamie Kyle
parent 0f377de29e
commit e56d0ed9fb
3 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ export default {
link: {
control: { type: 'text' },
defaultValue:
'https://signal.me#eu/n-AJkmmykrFB7j6UODGndSycxcMdp_v6ppRp9rFu5Ad39q_9Ngi_k9-TARWfT43t',
'https://signal.me/#eu/n-AJkmmykrFB7j6UODGndSycxcMdp_v6ppRp9rFu5Ad39q_9Ngi_k9-TARWfT43t',
},
username: {
control: { type: 'text' },

View file

@ -398,7 +398,7 @@ describe('sgnlHref', () => {
generateUsernameLink(
'E7wk7FTMz/UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4/Efe'
),
'https://signal.me#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
'https://signal.me/#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
);
});
@ -408,7 +408,7 @@ describe('sgnlHref', () => {
'E7wk7FTMz/UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4/Efe',
{ short: true }
),
'signal.me#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
'signal.me/#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
);
});
});

View file

@ -188,7 +188,7 @@ export function generateUsernameLink(
base64: string,
{ short = false }: GenerateUsernameLinkOptionsType = {}
): string {
const shortVersion = `signal.me#eu/${toWebSafeBase64(base64)}`;
const shortVersion = `signal.me/#eu/${toWebSafeBase64(base64)}`;
if (short) {
return shortVersion;
}