Running into an odd problem w/insert view:
I have a view setup with an exposed filter. When a user selects an item to filter on and clicks Apply, they're redirected to the front page of the site, and the view argument is appended to the front page URL.
ie: Assume node w/inserted view is at http://mysite.com/catalogue
When filter is submitted (say, publication type of Journal), user is dropped at the front page, with the following URL:
http://mysite.com/?field_pubtype[]=journal
This seems tangentially similar to http://drupal.org/node/383044 only in that case it sounds as though the filter was being applied correctly, instead of being dropped at the front page.
Comments
Comment #1
Pasquallethis is the expected behavior of exposed filters #525592-2: views_embed_view() + exposed filters button = homepage redirect
if you switch the view into ajax mode, then the exposed filter will work as you wanted.
edit view->Basic settings->Use AJAX
Comment #2
mkelly CreditAttribution: mkelly commentedPerfect! I missed that issue. Problem solved. Thank you.
Comment #3
tvb CreditAttribution: tvb commentedI ran into a similar problem on a multilingual site with a view using exposed filters. The language path prefix in the URL disappeared after applying the filter.
Switching to Ajax mode solved it for me.
Comment #4
pvanerk CreditAttribution: pvanerk commentedOn this page is a bit of code available you can put in a custom module.
[Taken from the page above]
To solve this problem, I had to write the following module to alter the exposed form so that it submits to current language.