Malfunction after D10 Upgrade / Ajax using GET instead of POST?

Created on 12 September 2023, 10 months ago
Updated 24 September 2023, 9 months ago

Problem/Motivation

I am using Views Show More for quite some time without problems.
After Upgrade from D9 to D10 the AJAX call is breaking the function (click on "load more" jumps to top of page, no new items are shown).

I found out that the AJAX call in Drupal 9 was POST, which worked fine. In D10 it is GET, which may be the cause for the malfunction.

Steps to reproduce

Add a view, set AJAX to "yes", use Pager "show more pager"

Proposed resolution

Possibility to use POST again? Or maybe other solution?

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡©πŸ‡ͺGermany MikeZ77

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

Comments & Activities

  • Issue created by @MikeZ77
  • ivnish Poland

    Hi!

    I think this is https://www.drupal.org/node/3193798 β†’

    Views now uses GET requests by default when the "Use AJAX" setting is enabled.

  • πŸ‡­πŸ‡°Hong Kong yookoala

    I have freshly installed views_show_more on Drupal 10.1.3. And I've setup a very simple view to use the Views Show More pager. When I clicked the "Show More" link, the browser refreshed into another page. This is not supposed to happen.

    I've disabled Javascript caching. Then I've added a single console.log on top of Drupal.AjaxCommands.prototype.viewsShowMore. I don't think that console log is ever run after I clicked the "Show More" link in pager.

  • Status changed to Closed: works as designed 9 months ago
Production build 0.69.0 2024