Issue with Bigpipe and Ajax links api module

Created on 16 March 2021, over 3 years ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

I am using https://www.drupal.org/project/ajax_links_api β†’ with a site right now. That module loads content via ajax into a container. For example, the main nav will always remain and just the content of the node is loaded into the main container.

The issue I have with flag is when I go to a node via ajax, the flag link does not render. Instead I get a SPAN placeholder that looks something like this:

<span data-big-pipe-placeholder-id="callback=flag.link_builder%3Abuild&amp;args%5B0%5D=node&amp;args%5B1%5D=18&amp;args%5B2%5D=user_favorites&amp;token=VcRmb9fWW1C2TvMtVm3f2sUe8D09eNebXkKwDn_Wn9k"></span>

If I do a complete reload of the page I am on, the flag link renders and works as intended. Also if I disable the bigpipe module, the flag link works as intended whether I browse to that page via ajax or from a fresh reload.

Obviously I do not want to disable bigpipe. I understand this is more likely an issue with the ajax links api module, but its not actively maintained and would just like some help on getting the flag link to render properly.

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Flag core

Created by

πŸ‡ΊπŸ‡ΈUnited States rondog469

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.

  • πŸ‡¦πŸ‡ΊAustralia admirernepali

    It's happening in my version 10.2.5.

    <span data-big-pipe-placeholder-id="callback=flag.link_builder%3Abuild&amp;args%5B0%5D=rate_reviews&amp;args%5B1%5D=14&amp;args%5B2%5D=like&amp;token=z1OnbulWQJR0JW6djKg1G5O_pY9eQCZrOQu-OryUwjc">
    </span>
    
Production build 0.71.5 2024