Block refresh is working great, except on taxonomy/term pages.

The request for block_refresh/[module]/[block]/taxonomy/term/[termID] eg block_refresh/radio_schedule/onair_custom_block/taxonomy/term/69

returns the whole rendered page for /taxonomy/term/[termID] rather than the rendered block.

You can see this on my live site: http://www.2gb.com/block_refresh/radio_schedule/onair_custom_block returns the rendered block, while

http://www.2gb.com/block_refresh/radio_schedule/onair_custom_block/taxon... returns the whole page for that term.

I have stopped this wrecking the taxonomy/term pages by filtering 'taxonomy' out of the callback path in block_refresh.js :

//Get argument from referring page and append to end of load request
      args = '';
      $.each(Drupal.settings.block_refresh.args, function(index, arg) {
        if (arg != 'taxonomy') {
        args += '/'+arg;
        }
      });

But this feels like a nasty hack to me ;)

Any idea what's going on?

Comments

tripper54’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This was due to global redirect messing with the path with its "taxonomy term path handler'.

I will put a note in the readme to watch for this.

  • Commit 4eeb923 on 7.x-2.x by tripper54:
    Issue #2081071: updated readme to warn about global redirect module
    

  • Commit 4eeb923 on 7.x-2.x, 8.x-1.x by tripper54:
    Issue #2081071: updated readme to warn about global redirect module