Commit b10a4c36e042c47339466a0500a9ea7cc4737c11
1 parent
a762ff58
Exists in
master
and in
22 other branches
ActionItem262: generating URL The Right Way (tm)
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1933 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -542,7 +542,7 @@ module ApplicationHelper |
542 | 542 | "" |
543 | 543 | elsif opt == 'simple_search' |
544 | 544 | s = _('Search...') |
545 | - '<form action="search" id="simple-search" class="focus-out"'+ | |
545 | + "<form action=\"#{url_for(:controller => 'search', :action => 'index')}\" id=\"simple-search\" class=\"focus-out\""+ | |
546 | 546 | ' help="'+_('This is a search box. Click, write your query, and press enter to find')+'"'+ |
547 | 547 | ' title="'+_('Click, write and press enter to find')+'">'+ |
548 | 548 | '<input name="query" value="'+s+'"'+ | ... | ... |