Skip to content

Commit 9b8e127

Browse files
committed
switch to using matrix.to for permalinks
1 parent 88dba1b commit 9b8e127

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/components/views/context_menus/MessageContextMenu.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ module.exports = React.createClass({
133133
}
134134
}
135135

136-
// XXX: this should be https://matrix.to.
137136
// XXX: if we use room ID, we should also include a server where the event can be found (other than in the domain of the event ID)
138137
permalinkButton = (
139138
<div className="mx_MessageContextMenu_field">
140-
<a href={ "#/room/" + this.props.mxEvent.getRoomId() +"/"+ this.props.mxEvent.getId() }
141-
onClick={ this.onPermalinkClick }>Permalink</a>
139+
<a href={ "https://matrix.to/#/" + this.props.mxEvent.getRoomId() +"/"+ this.props.mxEvent.getId() }
140+
target="_blank" onClick={ this.onPermalinkClick }>Permalink</a>
142141
</div>
143142
);
144143

0 commit comments

Comments
 (0)