Duplicate entries in Views Reference when using contextual filters with OR (+) operator

Created on 2 April 2025, 5 days ago

Problem/Motivation

When using the Views Reference module in a Paragraph, a duplication issue occurs when passing multiple contextual filter values in OR mode.

Steps to reproduce

Create a View that displays content and uses a contextual filter based on a taxonomy term reference field.

Configure the contextual filter to allow multiple values and support both AND (1,2) and OR (1+2) filtering.

Test the View directly with a URL like /my-view/1+2+3 and confirm that it correctly filters the content, showing only one instance of each content item.

Create a Paragraph type with a Views Reference field pointing to the created View.

Add the Paragraph to a content type and set the "Argument" field of the Views Reference to 1+2+3.

Save and view the content.

Expected result

The View should return the same results as when accessed directly, with each content item appearing only once.

Actual result

A content item that matches multiple taxonomy terms appears multiple times in the results.

🐛 Bug report
Status

Active

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024