Commit 4a91d505 authored by Fabien Morin's avatar Fabien Morin

search result url (i.e. submit url from top-right searchbox) was...

search result url (i.e. submit url from top-right searchbox) was ./ERP5Site_viewSearchResult . But I prefer
(portal_url)/ERP5Site_viewSearchResult instead. Because the breadcrumbs in the result page is confusing.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8bbb4bb6
......@@ -55,9 +55,15 @@
<key> <string>_body</string> </key>
<value> <string>translateString = context.Base_translateString\n
translated_type = \'\'\n
\n
if getattr(context, \'getWebSectionValue\', None) is not None:\n
context_search = context.getWebSectionValue()\n
else:\n
context_search = context.getPortalObject()\n
\n
if field_your_search_portal_type:\n
if field_your_search_portal_type == \'all\':\n
return context.Base_redirect(\'ERP5Site_viewSearchResult\',\n
return context_search.Base_redirect(\'ERP5Site_viewSearchResult\',\n
keep_items=dict(SearchableText=field_your_search_text, reset=1,\n
your_search_text=field_your_search_text,\n
portal_type=list(context.getPortalDocumentTypeList()),\n
......@@ -66,7 +72,7 @@ if field_your_search_portal_type:\n
\n
translated_type = translateString(field_your_search_portal_type)\n
\n
return context.Base_redirect(\'ERP5Site_viewSearchResult\',\n
return context_search.Base_redirect(\'ERP5Site_viewSearchResult\',\n
keep_items=dict(SearchableText=field_your_search_text, reset=1,\n
your_search_text=field_your_search_text,\n
translated_portal_type=translated_type,\n
......@@ -116,6 +122,9 @@ return context.Base_redirect(\'ERP5Site_viewSearchResult\',\n
<string>context</string>
<string>translateString</string>
<string>translated_type</string>
<string>getattr</string>
<string>None</string>
<string>context_search</string>
<string>dict</string>
<string>list</string>
</tuple>
......
1130
\ No newline at end of file
1133
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment