1. Create a flag with "Display link as field" and "AJAX link".
2. Render that flag as a normal field within the "Manage display" of a node type.

You'll see the link created as:

<a title="" href="/flag/flag/FLAG_ID/NODE_ID?destination=flag/unflag/FLAG_ID/NODE_ID&amp;token=TOKEN" class="use-ajax" rel="nofollow">FLAG_LABEL</a>

Now, create a View with the "Flags" relationship and add "Flag link".

The rendered link will be created as:

<a title="" href="/flag/flag/FLAG_ID/NODE_ID?destination=flag/unflag/FLAG_ID/NODE_ID&amp;token=TOKEN">FLAG_LABEL</a>

Without that "use-ajax" class, the link will always cause a full page refresh.

Comments

Morbus Iff created an issue. See original summary.

Morbus Iff’s picture

Version: 8.x-4.x-dev » 8.x-4.0-alpha2
Morbus Iff’s picture

Ignore. Confirmed fixed in 8.x-4.x.

Morbus Iff’s picture

Status: Active » Closed (cannot reproduce)