From 33e1d3eb208709e331006fe323aa90e8a355d2bc Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Tue, 15 Feb 2022 19:04:37 +0000 Subject: [PATCH] [COMPONENT][Conversation] Use Router::url's _fragment for anchor --- components/Conversation/Conversation.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/Conversation/Conversation.php b/components/Conversation/Conversation.php index 562f2e5753..3a0c536c12 100644 --- a/components/Conversation/Conversation.php +++ b/components/Conversation/Conversation.php @@ -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, );