Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on All footnotes lead to the question.

Post

All footnotes lead to the question. [duplicate]

+10
−0

Closed as duplicate by Monica Cellio‭ on Sep 23, 2024 at 21:16

This question has been addressed elsewhere. See: Footnotes with the same number in different posts on the same page

This question was closed; new answers can no longer be added. Users with the reopen privilege may vote to reopen this question if it has been improved or closed incorrectly.

If there is a proper footnote (using the links) in the question of the post and in any of the answers1, and you click on a footnote in the answer, it will lead to the footnote that is part of the question.

  1. Examples of this are here, and here.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

There's a newer report of the same problem with more details, so I'm marking this one as a dupe of th... (1 comment)
General comments (3 comments)
General comments
DonielF‭ wrote about 4 years ago

Bonus round: Dani and I tested this with my linked answer earlier, by changing my footnote to [3] instead of [1]. Didn't help; it displays and acts like [1], with this bug in force.

Canina‭ wrote about 4 years ago · edited about 4 years ago

I'll hazard a guess that the problem is that whatever renders the Markdown to HTML sees only one post (the question, or a single answer) at a time. So the ID numbering starts over at 1 for each new post, resulting in multiple #fn1, #fn2 and so on anchors in the document tree. A brute force solution to that might be to simply patch that code to use GUIDs as anchors instead of numbers, but display numbers. That'll probably break external links to footnotes, but I think we can live with that.

Michael‭ wrote 11 months ago

If I were doing it, I'd patch the code to be #{post id}-fn{id} and #{post id}-fnref{id}. Easier to read than GUIDs and you probably have all the data already at your fingertips. With editable posts, I don't think GUIDs would necessarily even stay consistent. Whether you seed the GUID from the order of footnotes in the post or the text in the footnote ID ([^this]), both can change in a post edit.

I don't know if there's a way to rewrite incoming link-anchors from the (current) system to a best-guess new anchor in this new system.