Closed (works as designed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
render system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2021 at 04:11 UTC
Updated:
23 Jan 2022 at 18:53 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedI think this is a duplicate 🧐
Comment #3
mkrkarthi commented@cilefen, That issue was created for a contributed module. I expect a solution from Drupal core itself. Since, it is implemented in Drupal.org, I hope there is a way to do it via theme.
in comment.html.twig
{{title}} sample output is
<a href="/comment/41#comment-41" class="permalink" rel="bookmark" hreflang="und">Sample Comment</a>It needs to be changed like
<a href="#comment-41" class="permalink" rel="bookmark" hreflang="und">Sample Comment</a>Or
<a href="/node-alias#comment-41" class="permalink" rel="bookmark" hreflang="und">Sample Comment</a>Comment #4
cilefen commentedDrupal.org is a Drupal 7 site: https://www.drupal.org/project/drupalorg/issues/3048579 and it probably uses https://www.drupal.org/project/comment_fragment.
Comment #5
mkrkarthi commentedYes, drupal.org uses comment_fragment
https://www.drupal.org/project/drupalorg/issues/2677860#comment-13980109
Not yet ported to Drupal 8/9.
Comment #7
cilefen commented