0

I have a search form in the header of my site. it takes me to a certain controller/action when i click submit. So far so good.

However, I would like the loaded page to have a url with the query in it, such as

http://www.youtube.com/results?search_query=eminem

How can i do that?

4

1 に答える 1

0

Post-Redirect->Getを実行する必要があります。

私たちの検索プラグインには、これを自動化するためのコンポーネントとその他の魔法がたくさんあります。それを使用するか、コードを見てアイデアを理解してください。

于 2012-06-01T09:57:49.950 に答える