Im experiencing a strange problem where the same flag link for the administrator behaves differently to that of an ordinary authenticated user.

i have a flag on a taxonomy term page view.

As the administrator
in the flag link the destination is set as the taxonomy terms page which is correct

As an authenticated user
the flat link destination is set as node
as a result the flagging does not work when logged in as authenticated user

ive checked the flag permissions, flushed caches etc

any idea why this may be behaving like this?

https://www.drupal.org/node/2378615

I posted the issue in the flag module issue but when i was investigating some more i was wondering if perhaps it is the combination of authcache and flag that is causing this behaviour

thanks

Comments

znerol’s picture

Is the content containing the flag loaded via Authcache?

Colin @ PCMarket’s picture

Hi Znerol

When i checked, yes they were in fact loaded via authcache.

When i exclude this page via authcache page caching settings the flag works as expected.

Strangely though this problem does not occur on my node pages which have a flag bookmark link enabled.

znerol’s picture

When i checked, yes they were in fact loaded via authcache.

Can you enable per page granularity on the authcache fragment which encloses the flags? This will most probably resolve the problem with the destination.

this problem does not occur on my node pages which have a flag bookmark link enabled.

This is likely because the flag is not rendered inside an authcache fragment in that case.

Colin @ PCMarket’s picture

I have the flag link option set to display link as a field which then works with drupal fields display.

I don't have granularity over this like i would if i had it in a block.

znerol’s picture

If I'm not mistaken, it should be possible to specify the granularity in the authcache field settings?

znerol’s picture

Status: Active » Postponed (maintainer needs more info)
znerol’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)