mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 12:45:11 +08:00
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)
This commit is contained in:
parent
4d7eb5795c
commit
aef04d682b
@ -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 New Issue
Block a user