Make the links we emit for room URLs valid rather than relying on the onClick handler (ie. make them work if you c+p them)

pull/21833/head
David Baker 2016-02-18 18:16:39 +00:00
parent 4d7eb5795c
commit aef04d682b
1 changed files with 11 additions and 0 deletions

View File

@ -114,6 +114,17 @@ matrixLinkify.options = {
}
};
}
},
formatHref: function (href, type) {
switch (type) {
case 'roomalias':
return '#/room/' + href;
case 'userid':
return '#';
default:
return href;
}
}
};