mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
encode url components
This commit is contained in:
parent
b578f4ac84
commit
1ea4a347e2
@ -35,11 +35,11 @@ export class BaseMessageTile extends SimpleTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get permaLink() {
|
get permaLink() {
|
||||||
return `https://matrix.to/#/${this._room.id}/${this._entry.id}`;
|
return `https://matrix.to/#/${encodeURIComponent(this._room.id)}/${encodeURIComponent(this._entry.id)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
get senderProfileLink() {
|
get senderProfileLink() {
|
||||||
return `https://matrix.to/#/${this.sender}`;
|
return `https://matrix.to/#/${encodeURIComponent(this.sender)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
get displayName() {
|
get displayName() {
|
||||||
|
Loading…
Reference in New Issue
Block a user