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:
David Baker 2016-02-19 11:40:11 +00:00
commit c053f90b18

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;
}
} }
}; };