mirror of https://github.com/xwiki-labs/cryptpad
Fix broken link on support notification
This commit is contained in:
parent
1c22beee91
commit
eb61351c79
|
@ -494,7 +494,8 @@ define([
|
|||
return text;
|
||||
};
|
||||
content.handler = function () {
|
||||
let url = msg.isAdmin ? '/support/#tickets' : `/moderation/#support-${content.channel}`;
|
||||
let id = Util.hexToBase64(msg.channel).slice(0,10);
|
||||
let url = msg.isAdmin ? '/support/#tickets' : `/moderation/#open-${id}`;
|
||||
common.openURL(url);
|
||||
defaultDismiss(common, data)();
|
||||
};
|
||||
|
|
|
@ -992,7 +992,7 @@ Attachments:${JSON.stringify(msg.attachments, 0, 2)}`;
|
|||
let active = privateData.category || 'active';
|
||||
let linkedTicket;
|
||||
if (active.indexOf('-') !== -1) {
|
||||
linkedTicket = active.split('-')[1];
|
||||
linkedTicket = active.slice(active.indexOf('-')+1);
|
||||
active = active.split('-')[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue