Browser back button not working

Created on 9 May 2023, over 1 year ago

Problem/Motivation

The back/forward buttons in the browser do not work. The page address changes, but the content does not change.

Steps to reproduce

Drupal 9.5.8
The module 1.0-dev
theme.theme:

function staym_preprocess_page(array &$variables): void {
  $variables['#attached']['library'][] = 'ajax_link/ajaxLink';
}

page.html.twig:

<a href="/node/1" class="ajax-link" data-ajax-link-history="1" data-ajax-link-remove-after-execution="false">Node 1</a>
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇺Russia shevgeny Moscow

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

Comments & Activities

Production build 0.71.5 2024