Change templates to use www.postgresql.org/search/ for search boxes

This makes search results render properly in the new website framwework.
Also fixes the URL for search in interactive docs, without requiring
double-indexing.

Fixes #100 and #112
This commit is contained in:
Magnus Hagander
2011-12-03 15:14:23 +01:00
parent 247fb6d6e9
commit 42d1dd7ddf
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
<span class="txtOffScreen"><a href="#pgContentWrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
<div id="pgHeaderContainer">
<div id="pgSearch">
<form method="get" action="http://search.postgresql.org/search">
<form method="get" action="/search/">
<div>
<h2 class="pgBlockHide"><label for="q">Search</label></h2>
<input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit" type="submit" value="Search" />

View File

@ -19,9 +19,9 @@
<div id="docContainer">
<div id="docNavSearchContainer">
<div id="docSearch">
<form action="http://search.postgresql.org/search" method="get">
<form action="/search/" method="get">
<div>
<input type="hidden" name="u" value="/docs/{{doc_nav_version}}/{{doc_type}}/" />
<input type="hidden" name="u" value="/docs/{{doc_nav_version}}/">
<label for="q">Search Documentation:&nbsp;</label><input type="text" id="q" name="q" size="20" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" /><input id="submit" type="submit" value="Search" />
</div>
</form>