Skip to content

Commit

Permalink
add controller rule
Browse files Browse the repository at this point in the history
to forward index.html to list_files.xq
  • Loading branch information
peterstadler committed May 24, 2023
1 parent 0e884d5 commit 6f5a6da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controller.xql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ else if ($exist:path eq "/") then
<redirect url="index.html"/>
</dispatch>

else if ($exist:path eq "/index.html") then
(: forward root path to index.xql :)
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<forward url="{$exist:controller}/modules/list_files.xq"/>
</dispatch>

else if (contains($exist:path, "/orbeon/")) then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<cache-control cache="yes"/>
Expand Down

0 comments on commit 6f5a6da

Please sign in to comment.