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.

+9
−0

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 moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (3 comments)
General comments
DonielF‭ wrote over 3 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 over 3 years ago · edited over 3 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 3 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.