Commerce Add to Cart buttons loading with incorrect path '/views/ajax' on products displayed after Infinite Scroll is used

Created on 23 August 2017, over 7 years ago
Updated 23 February 2025, about 1 month ago

I am using Views Infinite Scroll on the main cart pages of a site. Everything works fine on first page, but products that are loaded by infinite scroll have broken add to cart links. Clicking these add to cart links takes you to '../views/ajax' where you see an ajax return [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"bootsugar","theme_token":"s9vKoh5LSzdvMhvH_v_YuK7K6RzuE32x77Xaze5Ma4E"}},"merge":true}]

I do not believe this was an issue until we turned on Ajax after the last Views security update, so that Infinite Scroll would work again.

I like this module a lot, but will need to turn off to keep site functional.

edit: added info about views update and ajax

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States timb

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