The button in the block is supposed to appear on all pages and refer the front page (the base url), right?

Well for anon users it only seems to show up on node views where there is another button in the node. Perhaps the script necessary is only loaded on node views for anon users?

Comments

lennart’s picture

Actually, it seems to connected with cache. When turning of block cache tu button appears in the block on all pages (node view or not) as it should.

lennart’s picture

Title: for anon users button only appears in block on node view » for anon users button only appears in block on non-node pages when block cache turned off

Changing title to reflect new knowledge.

corbacho’s picture

Thanks for reporting it.
The js library is loaded when block view hook is executed. So because it's cached, the library is not added.

Later today I will push a version with 'DRUPAL_NO_CACHE' in the block info that should fix it.
The block only inserts a string (the button tag) in the block, so no reason to worry about performance

corbacho’s picture

I pushed it yesterday, but takes some hours until it's ready to download packaged.

Now is there. The last dev version should work. Could you confirm?

lennart’s picture

Yes, now it shows! Thanks!

corbacho’s picture

Status: Active » Fixed

great

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.