Skip to content

Fix permalinks to comments#79

Merged
csebianlander merged 1 commit intomainfrom
69-fix-comment-permalink
Aug 31, 2025
Merged

Fix permalinks to comments#79
csebianlander merged 1 commit intomainfrom
69-fix-comment-permalink

Conversation

@Anna-M-Thomas
Copy link
Collaborator

This pull request should close #69.

I've added the comment ID to the article element surrounding each comment (regular comments and moderator actions), so the anchor links work

There's already a data-comment-id on that element, so I could have jumped to the comments with Javascript instead, but that seemed unnecessarily complicated and I couldn't find any code that was already trying to do that.

I added comment- to the anchor link (from #{id of comment} to #comment-{id of comment}) because I was worried about the off chance that something else on the page would also happen to have the same id.

@csebianlander csebianlander merged commit a1796d9 into main Aug 31, 2025
1 check passed
@wrose504 wrose504 deleted the 69-fix-comment-permalink branch September 1, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Permalink to comment doesn't work

2 participants