Merge pull request #164 from matrix-org/make_room_links_valid
Make the links we emit for room URLs valid
This commit is contained in:
commit
c053f90b18
1 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,17 @@ matrixLinkify.options = {
|
|||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
formatHref: function (href, type) {
|
||||
switch (type) {
|
||||
case 'roomalias':
|
||||
return '#/room/' + href;
|
||||
case 'userid':
|
||||
return '#';
|
||||
default:
|
||||
return href;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue