Add extra slash to username link
This commit is contained in:

committed by
Jamie Kyle

parent
0f377de29e
commit
e56d0ed9fb
@@ -27,7 +27,7 @@ export default {
|
|||||||
link: {
|
link: {
|
||||||
control: { type: 'text' },
|
control: { type: 'text' },
|
||||||
defaultValue:
|
defaultValue:
|
||||||
'https://signal.me#eu/n-AJkmmykrFB7j6UODGndSycxcMdp_v6ppRp9rFu5Ad39q_9Ngi_k9-TARWfT43t',
|
'https://signal.me/#eu/n-AJkmmykrFB7j6UODGndSycxcMdp_v6ppRp9rFu5Ad39q_9Ngi_k9-TARWfT43t',
|
||||||
},
|
},
|
||||||
username: {
|
username: {
|
||||||
control: { type: 'text' },
|
control: { type: 'text' },
|
||||||
|
@@ -398,7 +398,7 @@ describe('sgnlHref', () => {
|
|||||||
generateUsernameLink(
|
generateUsernameLink(
|
||||||
'E7wk7FTMz/UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4/Efe'
|
'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',
|
'E7wk7FTMz/UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4/Efe',
|
||||||
{ short: true }
|
{ short: true }
|
||||||
),
|
),
|
||||||
'signal.me#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
|
'signal.me/#eu/E7wk7FTMz_UYjLAsswHpDsGku8CW7yTmlBh8gtd4yqjQlqcbh09F25x0aQT4_Efe'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -188,7 +188,7 @@ export function generateUsernameLink(
|
|||||||
base64: string,
|
base64: string,
|
||||||
{ short = false }: GenerateUsernameLinkOptionsType = {}
|
{ short = false }: GenerateUsernameLinkOptionsType = {}
|
||||||
): string {
|
): string {
|
||||||
const shortVersion = `signal.me#eu/${toWebSafeBase64(base64)}`;
|
const shortVersion = `signal.me/#eu/${toWebSafeBase64(base64)}`;
|
||||||
if (short) {
|
if (short) {
|
||||||
return shortVersion;
|
return shortVersion;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user