I have embedded a custom search view with views_embed_view. The problem is that when the user submits the form, Drupal goes to the site home page.
There is a thread in the Views issue queue that I think may help. The thread talks about exposed filter forms rather than search, but I think it's the underlying issue. The suggested fix is to set $view->override_path.
加载中,请稍侯......
精彩评论