[COMPONENT][Conversation] Use Router::url's _fragment for anchor

This commit is contained in:
Diogo Peralta Cordeiro 2022-02-15 19:04:37 +00:00
parent 54b9ec48b4
commit 33e1d3eb20
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -121,7 +121,8 @@ class Conversation extends Component
'conversation_reply_to',
[
'reply_to_id' => $note->getId(),
'from' => $from . '#note-anchor-' . $note->getId(),
'from' => $from,
'_fragment' => 'note-anchor-' . $note->getId(),
],
Router::ABSOLUTE_PATH,
);
@ -267,7 +268,8 @@ class Conversation extends Component
'conversation_mute',
[
'conversation_id' => $note->getConversationId(),
'from' => $from . '#note-anchor-' . $note->getId(),
'from' => $from,
'_fragment' => 'note-anchor-' . $note->getId(),
],
Router::ABSOLUTE_PATH,
);