Item12753: WebSearch does not pass topic parameter

pencil
Priority: Low
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiEngine
Branches: master
Reported By: AppsupportApa, PhilippGortan
Waiting For:
Last Change By: GeorgeClark
WebSearch currently ignores the topic parameter.

E.g., this URL currently does not perform the requested search, but produces the WebHome instead: http://foswiki.org/System/WebSearch?search=foswiki&topic=Web*

This patch fixes it for me:

@@ -255,6 +255,7 @@
        order="%URLPARAM{"order" encode="quote"}%"
        reverse="%URLPARAM{"reverse" encode="quote"}%"
        pager="on"
+       topic="%URLPARAM{"topic" encode="quote"}%"
        limit="%URLPARAM{"limit" encode="quote" default="%DEFAULTPAGESIZE%"}%"
        pagesize="%DEFAULTPAGESIZE%"
        zeroresults="%IF{

Closely resembles http://foswiki.org/Tasks/Item1713

-- AppsupportApa - 20 Feb 2014

The topic= parameter is reserved at the script level. All scripts accept topic=[web.]topic as an override to the Web/Topic extracted from the URL Path.

Implementing this as parameter searchtopic

-- GeorgeClark - 30 Dec 2014
 
Topic revision: r5 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy