Preserve #fragment for client side functionality

Created on 9 January 2024, 10 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.71.5 2024