Edition web footnote links don’t navigate properly on Firefox, Safari

In the “edition” preface to the Vinaya on SuttaCentral, clicking on the note links doesn’t take one to the notes, but to the top of the page instead. The same happens when clicking on the back links at the bottom.

3 Likes

I’ve checked this. The links are well-formed in the file, and the plain HTML works properly. @HongDa can you look at this? It looks like there’s some bug at the application level that’s stopping these from working properly online.

2 Likes

Beaver actually reported this before in the bug reports thread and at the time I couldn’t reproduce it:

I re-tested this on a few browsers (previously, I think I only tested Chrome):

  • :white_check_mark: Works fine on Chrome for Android and macOS
  • :x: Fails on Firefox for Android and macOS
  • :x: EDIT: Fails on Safari for macOS (with the same behavior as Firefox)

So there’s some browser compat issue going on there apparently. Which might explain this:

I can also confirm that the anchors appear to be correctly formed in the files and in the rendered HTML too.

EDIT2: I stared at it, played around with the HTML in various browsers, and searched for a while and could not figure out why they’re not working on Editions pages in Firefox and Safari.
But the answer must be in the diff between an Edition page and a plain web translation page, since segment anchors work fine on all browsers. Some subtle semantic difference likely matters to Firefox and Safari in some not very well documented (or undocumented) way – a particularly tedious one to debug


Speaking of, nice find and root cause!

4 Likes

Indeed. If you can address this that’s great. I plan to ask Hongda to look at it at some point, but well …

1 Like

A post was merged into an existing topic: Share even more love :tada:, let us know of any typos, mistakes in SuttaCentral translations, or other things