Skip to content
Snippets Groups Projects
Commit aef04d68 authored by David Baker's avatar David Baker
Browse files

Make the links we emit for room URLs valid rather than relying on the onClick...

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)
parent 4d7eb579
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,17 @@ matrixLinkify.options = {
}
};
}
},
formatHref: function (href, type) {
switch (type) {
case 'roomalias':
return '#/room/' + href;
case 'userid':
return '#';
default:
return href;
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment