Item9181: Natsearch not working correctly with Search field
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
After the update to latest natskin a search over the upper right Search field, does not call natsearch anymore. For example searching for "findme" gives
/bin/view/Main/WebSearch?jump=on;origtopic=Main.WebHome;search=findme
before it was
/bin/natsearch/Main/WebHome?limit=100&search=findme
Note, this problem is different for the one reported in
Question333,
Item8368,
Item958.
What I have:
What I see after searching for "findme"
BTW. The setting NATSEARCHGLOBAL = on is also not considered when searching over the Search field.
Any ideas?
--
UrsBeyerle - 21 Jun 2010
It's also visible in the html source code:
before the update:
<div class="natSearchBox">
<form name="searchbox" action="/foswiki/bin/natsearch/Main/WebHome">
<input type="hidden" name="limit" value="100" />
<table cellspacing="0" cellpadding="0" border="0">
And after the update:
<div class="natSearchBox">
<form name="searchbox" id="searchbox" action="/foswiki/bin/view/Main/WebSearch" >
<input type="hidden" name="jump" value="on" />
<input type="hidden" name="origtopic" value="Main.WebHome" />
<table cellspacing="0" cellpadding="0" border="0">
How and where is the
action
defined?
--
UrsBeyerle - 22 Jun 2010
I found it myself. The
action
is defined in
templates/searchbox.nat.tmpl
. So I changed
diff templates/searchbox.nat.tmpl.ori templates/searchbox.nat.tmpl
4c4
< <form name="searchbox" id="searchbox" action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebSearch" >
---
> <form name="searchbox" id="searchbox" action="%SCRIPTURLPATH{"natsearch"}%/%BASEWEB%/%BASETOPIC%" >
Natsearch is now working again from the Search & GO field, as I would expect it.
Was there a reason for changing the action in
templates/searchbox.nat.tmpl
?
--
UrsBeyerle - 22 Jun 2010
May I second the question (seeing the same on my instance)?
--
CraigBowers - 14 Jul 2010
Confirming this bug as well as the fix by
UrsBeyerle for Foswiki 1.1.0.
--
HolstenerLiesel - 15 Oct 2010
natsearch has been removed from the extension.
--
MichaelDaum - 01 Oct 2012