[FIX] Relative root url path handling 4115

Implements [ticket 4797](https://www.openproject.org/work_packages/4797)

* `#4797` [Subdirectory] Broken Links