Failed to execute 'pushState' on 'History'

Created on 14 July 2022, over 2 years ago
Updated 27 April 2023, over 1 year ago

Problem/Motivation

After updating to Drupal 9.4 when using views with AJAX history enabled the following error was displayed:

An error occured while attempting to process /views/ajax?type=All&page=2&_wrapper_format=drupal_ajax: Failed to execute 'pushState' on 'History'

Steps to reproduce

  1. Using Drupal 9.4
  2. Create a view
  3. Enable views ajax history & ajax
  4. Trigger an ajax command such as pagination
  5. Error is displayed.

Proposed resolution

The issue seems to be because the state contains functions, and these cannot be added successfully pushed to the history, add a clean up script that removes any functions from the state.

πŸ› Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom 3li U.K. πŸ‡¬πŸ‡§

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.

Production build 0.71.5 2024