Views Ajax not working in block tabs

Created on 10 August 2018, over 6 years ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

Adding a Views block to Blocktabs block breaks Views AJAX on filters. Whenever the submit button is clicked, it reloads the entire page.

Additionally, the tab position ( open tab ) is not preserved when the page refreshes.

In the case of embedding the blocktab in another content entity, it can cause real problems, because it redirects to a totally different views page, which also kills the contextual filter.

Steps to reproduce:

  1. Create 2 views blocks. Enable AJAX in the view. Add some filters.
  2. Create a blocktab, adding each view to a tab.
  3. Add the new block anywhere. I've tried adding to a region as well as to Layout Builder, same effect.
  4. Submit a filter on any of the blocktabs views blocks, the page will refresh or redirect ( I guess based on how the block is placed ).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottsawyer Atlanta

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