server: add base path management (closes #290589) [applied]