@@ -43,7 +43,7 @@ if (request:get-method() eq "GET" and $exist:path eq "") then
43
43
(: Landing page with package listing :)
44
44
else if (request:get-method () eq "GET" and $exist:path eq "/" ) then
45
45
<dispatch xmlns = "http://exist.sourceforge.net/NS/exist" >
46
- <forward url = "{$exist:controller} /index.html" />
46
+ <forward url = "{$exist:controller} /templates/ index.html" />
47
47
<view>
48
48
<forward url = "{$exist:controller} /modules/view.xq" >
49
49
<set-header name = "Cache-Control" value = "no-cache" />
@@ -75,7 +75,7 @@ else if (request:get-method() eq "GET" and starts-with($exist:path, "/packages")
75
75
(: Serve package detail - without the legacy ".html" extension :)
76
76
else if (request:get-method () eq "GET" and starts-with ($exist:path, "/packages" )) then
77
77
<dispatch xmlns = "http://exist.sourceforge.net/NS/exist" >
78
- <forward url = "{$exist:controller} /packages.html" />
78
+ <forward url = "{$exist:controller} /templates/ packages.html" />
79
79
<view>
80
80
<forward url = "{$exist:controller} /modules/view.xq" >
81
81
<add-parameter name = "abbrev" value = "{$exist:resource} " />
@@ -165,7 +165,7 @@ else if
165
165
$exist:path = ("/admin" , "/publish" )
166
166
) then
167
167
<dispatch xmlns = "http://exist.sourceforge.net/NS/exist" >
168
- <forward url = "{$exist:controller} /login.html" />
168
+ <forward url = "{$exist:controller} /templates/ login.html" />
169
169
<view>
170
170
<forward url = "{$exist:controller} /modules/view.xq" >
171
171
<set-header name = "Cache-Control" value = "no-cache" />
@@ -177,7 +177,7 @@ else if
177
177
(: Allow authenticated users into admin page :)
178
178
else if (request:get-method () = ("GET" , "POST" ) and $exist:path eq "/admin" ) then
179
179
<dispatch xmlns = "http://exist.sourceforge.net/NS/exist" >
180
- <forward url = "{$exist:controller} /admin.html" />
180
+ <forward url = "{$exist:controller} /templates/ admin.html" />
181
181
<view>
182
182
<forward url = "{$exist:controller} /modules/view.xq" >
183
183
<set-header name = "Cache-Control" value = "no-cache" />
0 commit comments