Skip to content

Bug with Campaigns' Prompt Display on Specific Tags #3182

@HXmagazine

Description

@HXmagazine

Describe the bug
I am encountering an issue with Newspack Campaigns where prompts configured to display based on specific tags do not behave as expected. When multiple prompts are set up with different tags, the last created prompt appears on all archive pages and the home page, regardless of the tag settings.

To Reproduce

  1. Go to the Newspack Campaigns section.
  2. Create a prompt and configure it to display on posts with a specific tag (e.g., 'Tag1').
  3. Verify that this prompt displays correctly on posts with 'Tag1'.
  4. Create another prompt and configure it to display on posts with a different tag (e.g., 'Tag2').
  5. Notice that the second prompt not only appears on posts with 'Tag2' but also on all archive pages and the home page, despite the tag configuration.

Screenshots
Screenshot_20240614_163904_Chrome
Screenshot_20240614_163807_Chrome
Screenshot_20240614_163755_Chrome
Screenshot_20240614_163744_Chrome

Expected behavior
Each prompt should only appear on posts with their configured tags and not affect the display on archive pages or the home page unless specifically set to do so. The expected behavior is for the prompts to adhere strictly to their tag-based visibility settings without overlapping or misfiring on unrelated pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions