Problem/Motivation

When you use the module as a field in a view which is created of an index made by the Search API module, token replacements doesn't work.

Steps to reproduce

1- Create a view based on a search API index.
2- add a hidden from display field of the node ID
3- Add "Views add button" field
4- In the query settings, add a query with with the node ID token replacement.

Proposed resolution

-

Remaining tasks

User interface changes

Nothing

API changes

Data model changes

Comments

Mamoun created an issue. See original summary.

socialnicheguru’s picture

token replacement does not work when the view returns no results

terry_kolodiy’s picture

I've reproduced steps 1-4.
Created an Index view, added NID field (excluded from display), added "Entity Add Button" field with query setting nid={{ nid }}.
And I have a button with link /node/add/movie?destination=/articles&nid=3

Everything works as expected. Looks like the issue is not reproducible and should be closed. Thanks!

terry_kolodiy’s picture

Closed due to inactivity and inability to reproduce the issue.
Feel free to reopen the ticket with additional details if the problem persists

terry_kolodiy’s picture

Status: Active » Closed (cannot reproduce)