Allow custom back to top anchor link

Created on 6 January 2021, almost 4 years ago
Updated 16 August 2024, 4 months ago

Problem/Motivation

toc_js automatically creates back to top links which target to the toc element of the heading where you clicked the link. What I can't do is to scroll to top of page or to a custom anchor e.g. placed next to the title heading.

Proposed resolution

Add a setting to choose the target item of the back to top links, e.g. custom, top of page (#) or automatic (current behaviour)

Feature request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇩🇪Germany anruether Bonn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France mably

    FYI in the new 3.0.x-dev version, "back to top" links target the first "tocable" heading of the page.

  • Status changed to Closed: outdated 4 months ago
  • 🇫🇷France flocondetoile Lyon

    So the feature request is resumed now to : "back to top" to a custom anchor (and not necessary the first heading). Close this as outdated as 3.0.x version allows to scroll to top of page now. Feel free to reopen if needed

Production build 0.71.5 2024