Hi there,

I'm running into trouble on my site where an exposed filter button, "apply," I have in a view works fine when I publish it as a page, however upon inserting the view into a node via viewfield, the apply button no longer works as expected, and instead sends the user back to the homepage.

example: http://www.porterworkstest.seanporterdp.com/index.php?q=education-soluti...

I would be very grateful for any information on how to solve this! otherwise I'm using the module extensively and love it!

many thanks in advance,
Sean

Comments

sean porter’s picture

I don't know enough about AJAX to know why, but changing the view mode to AJAX solved the problem.

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new841 bytes

Got the same problem so here's the patch. (Changes $view->override_path to point to current page url).

sun’s picture

Version: 6.x-1.x-dev » 6.x-1.0
Status: Needs review » Fixed
StatusFileSize
new787 bytes

Thanks for reporting, reviewing, and testing! Committed attached patch.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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

victoriachan’s picture

Version: 6.x-1.0 » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (fixed) » Needs review
StatusFileSize
new617 bytes

I am still having this problem using Viewfield 7.x-2.0 with Views 7.x-3.11.

Looking at the code at view::get_url, it doesn't seem to take into account override_path, but only override_url. So I have rewritten the patch for 7.x-2.x to add another line for that.

Thanks.

  • sun committed 3ab9dfe on 8.x-3.x
    #510356 by etzel, sun: Fixed exposed filters submitting to front page.
    
    
alex_optim’s picture

Status: Needs review » Fixed

Fixed.

Status: Fixed » Closed (fixed)

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