redirect from site home
This commit is contained in:
parent
4ef96c50ab
commit
974f6076eb
1 changed files with 14 additions and 0 deletions
|
@ -100,6 +100,20 @@ declare function page:invert-lang($lang as xs:string) as xs:string {
|
||||||
(: ======================= HOMEPAGE ============================== :)
|
(: ======================= HOMEPAGE ============================== :)
|
||||||
(: =============================================================== :)
|
(: =============================================================== :)
|
||||||
|
|
||||||
|
declare %rest:path("{$lang}")
|
||||||
|
%output:method("html")
|
||||||
|
%output:html-version('5')
|
||||||
|
function page:zero($lang) {
|
||||||
|
page:home($lang)
|
||||||
|
};
|
||||||
|
|
||||||
|
declare %rest:path("/")
|
||||||
|
%output:method("html")
|
||||||
|
%output:html-version('5')
|
||||||
|
function page:zero() {
|
||||||
|
page:zero('en')
|
||||||
|
};
|
||||||
|
|
||||||
declare %rest:path("{$lang}/home")
|
declare %rest:path("{$lang}/home")
|
||||||
%output:method("html")
|
%output:method("html")
|
||||||
%output:html-version('5')
|
%output:html-version('5')
|
||||||
|
|
Loading…
Add table
Reference in a new issue