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.
Comment | File | Size | Author |
---|---|---|---|
category_views_url.patch | 433 bytes | JirkaRybka |
Comments
Comment #1
bdragon CreditAttribution: bdragon commentedCommitted to DRUPAL-4-7, DRUPAL-5, and HEAD.
Thanks!
Comment #2
(not verified) CreditAttribution: commented