don't change URL bar when clicking on linkified rooms or users.

be aware of /user paths.
This commit is contained in:
Matthew Hodgson 2016-08-28 02:05:23 +01:00
parent ad873c2b60
commit de82ac3bc0
3 changed files with 33 additions and 34 deletions

View file

@ -100,9 +100,9 @@ var sanitizeHtmlParams = {
if (m) {
var entity = m[1];
if (entity[0] === '@') {
attribs.href = '#'; // TODO
attribs.href = '#/user/' + entity;
}
else if (entity[0] === '#') {
else if (entity[0] === '#' || entity[0] === '!') {
attribs.href = '#/room/' + entity;
}
delete attribs.target;