Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have several custom blocks on my site that display contents based on arguments from the URL, for example the id of the taxonomy on the taxonomy page would be $tid = arg(2);
Unfortunately this method does not work when using authcache_ajax or authcache_esi (after enabling personalization for this blocks, user based), most probably because the URL is now something like /fragment/block...
What is the correct way to deal with that?
Thanks.
Comments
Comment #1
znerol CreditAttribution: znerol commentedUse per-page caching. In this case
$_GET['q']
(the path) will be restored before the block is rendered in the ajax callback.Comment #2
abulte CreditAttribution: abulte commentedIt makes sense, and it works. Thanks!