Item12753: WebSearch does not pass topic parameter

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:*

This patch fixes it for me:

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

Closely resembles

-- 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 - This page was cached on 17 Sep 2021 - 17:59.

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