summaryrefslogtreecommitdiff
path: root/htroot/env/templates
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2017-10-24 09:54:54 +0200
committerluccioman <luccioman@users.noreply.github.com>2017-10-24 09:54:54 +0200
commit5161451a3549516df8542711830162bc6383b3cf (patch)
tree9c5cdc5e3f7443eb1516ff7ec36885c916a94b06 /htroot/env/templates
parentd0bed78d02852b2d27f7afe163c1d183eb5bc94c (diff)
Stay authenticated when going to the search start page.
Otherwise, when authenticated as admin and navigating from search results or admin pages to the search start page (/index.html), if nothing is done on that page within HTTP Digest Auth timeout (about 2mn), then search is performed without authentication and so without extended search features.
Diffstat (limited to 'htroot/env/templates')
-rw-r--r--htroot/env/templates/simpleSearchHeader.template2
-rw-r--r--htroot/env/templates/simpleheader.template2
2 files changed, 2 insertions, 2 deletions
diff --git a/htroot/env/templates/simpleSearchHeader.template b/htroot/env/templates/simpleSearchHeader.template
index 3f3f35d7d..466f3c116 100644
--- a/htroot/env/templates/simpleSearchHeader.template
+++ b/htroot/env/templates/simpleSearchHeader.template
@@ -37,7 +37,7 @@
<span class="visible-sm glyphicon glyphicon-search"><b class="caret"></b></span>
</a>
<ul class="dropdown-menu" role="menu">
- <li id="header_websearch"><a href="index.html" onclick="this.href='index.html?handover='+document.searchform.search.value">Web Search</a></li>
+ <li id="header_websearch"><a href="index.html#(authorized)#::?auth#(/authorized)#" onclick="this.href='index.html?#(authorized)#::auth&#(/authorized)#former='+document.searchform.search.value">Web Search</a></li>
<li id="header_filesearch"><a href="yacyinteractive.html" onclick="this.href='yacyinteractive.html?handover='+document.searchform.search.value">File Search</a></li>
<li id="header_comparesearch"><a href="compare_yacy.html?display=0">Compare Search</a></li>
<li id="header_hostbrowser"><a href="HostBrowser.html?hosts=">Index Browser</a></li>
diff --git a/htroot/env/templates/simpleheader.template b/htroot/env/templates/simpleheader.template
index 359e7f8e3..634d03ad3 100644
--- a/htroot/env/templates/simpleheader.template
+++ b/htroot/env/templates/simpleheader.template
@@ -17,7 +17,7 @@
<li id="header_search" class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">Search Interfaces<b class="caret"></b></a>
<ul class="dropdown-menu" role="menu">
- <li id="header_websearch"><a href="index.html" onclick="this.href='index.html?handover='+document.searchform.search.value">Web Search</a></li>
+ <li id="header_websearch"><a href="index.html#(authorized)#::?auth#(/authorized)#" onclick="this.href='index.html?#(authorized)#::auth&#(/authorized)#former='+document.searchform.search.value">Web Search</a></li>
<li id="header_filesearch"><a href="yacyinteractive.html" onclick="this.href='yacyinteractive.html?handover='+document.searchform.search.value">File Search</a></li>
<li id="header_comparesearch"><a href="compare_yacy.html?display=0">Compare Search</a></li>
<li id="header_hostbrowser"><a href="HostBrowser.html?hosts=">Index Browser</a></li>