Skip to content

Commit

Permalink
[bugfix] outline view in sidebar
Browse files Browse the repository at this point in the history
The outline route returned statuscode 404 because it is in fact a post request and only get was allowed in the controller.
  • Loading branch information
line-o committed Aug 20, 2024
1 parent ef7b1e4 commit 0224405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.xq
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ else if ($local:method = 'get' and starts-with($exist:path, '/results/')) then
</forward>
</dispatch>

else if ($local:method = 'get' and $exist:resource eq "outline") then
else if ($local:method = 'post' and $exist:resource eq "outline") then
let $query := request:get-parameter("qu", ())
let $base := request:get-parameter("base", ())
return
Expand Down

0 comments on commit 0224405

Please sign in to comment.