redirect from site home

This commit is contained in:
Oleg Belyaev 2025-03-22 00:11:15 +03:00
parent 4ef96c50ab
commit 974f6076eb

View file

@ -100,6 +100,20 @@ declare function page:invert-lang($lang as xs:string) as xs:string {
(: ======================= 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")
%output:method("html")
%output:html-version('5')