Preserve #fragment for client side functionality

Created on 9 January 2024, 6 months ago

Problem/Motivation

Pagers don't seem to support url fragments.

https://somesite/somepage?someparam=somevalue#somefragment

If creating a url using tokens the fragments get lost somewhere on the way to page reload.

A pager which can keep fragments until the next reload would enable a lot of useful features (like jumping back to a comment, reopening the last selected tab, ...)

Maybe this can help.

code sample of a custom module:
https://www.drupal.org/project/drupal/issues/1293912#comment-13219514 ✨ Allow pager to link to #fragments Needs work

module for links with fragments
https://www.drupal.org/project/menu_link_fragment β†’

older patch for D7:
https://www.drupal.org/project/drupal/issues/1216628 β†’

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

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

Comments & Activities

Production build 0.69.0 2024