Skip to content

Commit e997dc7

Browse files
authored
Merge pull request #711 from eXist-db/fix/outline
[bugfix] outline view in sidebar
2 parents ffec7b8 + 0224405 commit e997dc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

controller.xq

+5-5
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ else if ($exist:resource eq 'execute') then
222222
<set-header name="Cache-Control" value="no-cache"/>
223223
<!-- Query is passed via the attribute 'xquery.source' -->
224224
<set-attribute name="xquery.source" value="{$query}"/>
225-
<set-attribute name="xquery.module-load-path" value="{$base}"/>
225+
<set-attribute name="xquery.module-load-path" value="{$base}"/>
226226
<!-- Errors should be passed through instead of terminating the request -->
227227
<set-attribute name="xquery.report-errors" value="yes"/>
228228
<set-attribute name="start-time" value="{util:system-time()}"/>
@@ -240,15 +240,15 @@ else if ($local:method = 'get' and starts-with($exist:path, '/results/')) then
240240
</forward>
241241
</dispatch>
242242

243-
else if ($local:method = 'get' and $exist:resource eq "outline") then
243+
else if ($local:method = 'post' and $exist:resource eq "outline") then
244244
let $query := request:get-parameter("qu", ())
245245
let $base := request:get-parameter("base", ())
246-
return
246+
return
247247
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
248-
<!-- Query is executed by XQueryServlet -->
248+
<!-- Query is executed by XQueryServlet -->
249249
<forward url="modules/outline.xq">
250250
<set-header name="Cache-Control" value="no-cache"/>
251-
<set-attribute name="xquery.module-load-path" value="{$base}"/>
251+
<set-attribute name="xquery.module-load-path" value="{$base}"/>
252252
</forward>
253253
</dispatch>
254254

0 commit comments

Comments
 (0)