Skip to content
Snippets Groups Projects
Commit 96310e95 authored by usikora's avatar usikora :monkey:
Browse files

preparing URL-rewriting for ontermediate_format.xql - not working yet

parent e63310e9
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ else if ($exist:path eq "/") then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="index.html"/>
</dispatch>
else if ($exist:path eq "/convert/uri=") then
(: forward root path to index.xql :)
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="../rest/intermediate_format.xql?path={substring-after($exist:path, '/convert/uri=')}"/>
</dispatch>
else if (ends-with($exist:resource, ".html")) then
(: the html page is run through view.xql to expand templates :)
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment