Use correct baseUrl when using a reverse proxy consisting of subdirectories

Fixes #250.
Change to `urlUtil` after updating the dependency to match other parts of the system