While embedding a View to render node-lists on Category pages, AND having some Exposed filters on the View, the Submit button for these filters points to a wrong URL: After submitting the filters you're taken to the View alone, no more embedded in a Category page, and no more filtered for its nodes only.

First I thought that it's a Views module's bug, and tried to patch it, so that the Submit button always reflects actual URL (my issue here: http://drupal.org/node/156130 ), but the maintainer of Views didn't accept that, and explained that the URL should be passed from the embedding module for some reasons. He also gave a tip how to do it. I figured out how exactly (more from the code than documentation, to be honest), it's pretty much simple, and working well.

Patch attached.

CommentFileSizeAuthor
category_views_url.patch433 bytesJirkaRybka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bdragon’s picture

Status: Needs review » Fixed

Committed to DRUPAL-4-7, DRUPAL-5, and HEAD.
Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)