don't change URL bar when clicking on linkified rooms or users.
be aware of /user paths.
This commit is contained in:
parent
ad873c2b60
commit
de82ac3bc0
3 changed files with 33 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue