Hello All,

I've read this issue in a few other tickets, but no one has responded with an answer that worked for me. My issue is fairly simple. I have a view of a node-type...call it links-view.

It simple displays a bunch of links. I exposed a filter, Link Taxonomy, so that a user can simply click a link type and sort the list. Simple, right? Works great as a view. But, when I expose the filter as a block, it breaks.

My panel page simply displays the link view. I added the exposed form onto the left sidebar in two ways. The first just as a simple block, created by "Views expose as block" option.

The second way was to use a mini-panel, and then place the exposed block within that mini-panel as content. Both options display just fine.

But, my page is http://hylenskihammock.com/links. When I select a taxonomy type from the minipanel or the block on the left, and click submit, it redirects me to http://hylenskihammock.com?tid=1.

So, how do I modify the url of the block or minipanel so that it redirects to http://hylenskihammock.com/links?tid=1.

Thanks for your help.

Comments

bhylenski’s picture

any help on this issue?

awolfey’s picture

Change your form id and action (the path you want to go to) to suit your needs.

function custom_form_alter (&$form, $form_state, $form_id) {
  // Send exposed views filter in block form to the right place. Question from 
  // home page goes to browse question page.
  if ($form['#id'] == 'views-exposed-form-browse-questions-block-1') {
    $form['#action'] = 'browse';
  }
}
merlinofchaos’s picture

You'll need #2's workaround for now.

sime’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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