Fix regression where doc search would not search over current version.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 24 Oct 2018 22:45:54 +0000 (23:45 +0100)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 24 Oct 2018 22:45:54 +0000 (23:45 +0100)
templates/docs/docspage.html

index 79b48df62aee174fee95748904ef0c560418d074..2ebfac504f1f8de5f60d9db270bb47f49a4a1f69 100644 (file)
             </div>
             <div class="col-md-6 col-lg-5 offset-lg-1">
               <form id="docSearchForm" role="search" method="get" action="/search/">
+                <input type="hidden" name="u" value="/docs/{{page.display_version}}/" />
                 <div class="input-group">
                   <input type="text" id="q" name="q" onfocus="if( this.value==this.defaultValue ) this.value='';" class="form-control" placeholder="Search the documentation for..."/>
                   <span class="input-group-btn">