[FIX] Relative root url path handling 4115

Implements [ticket 4115](https://www.openproject.org/work_packages/4115)

* `#4115` [Subdirectory] Broken Redirects

:exclamation: Depends on [Core PR 924](https://github.com/opf/openproject/pull/927)