declare variable $config:context-path :=
let $prop := util:system-property("teipublisher.context-path")
return
if (exists($prop)) then
if ($prop = "auto") then
request:get-context-path() || substring-after($config:app-root, "/db")
else
$prop
else if (exists(request:get-header("X-Forwarded-Host")))
then ""
else
request:get-context-path() || substring-after($config:app-root, "/db")
;
Default definition
Known issues with the current definition
@endpointwhen running behind a proxy (see pb-tify: current endpoint fallback is problematic when running behind a proxy tei-publisher-components#295)