Generate relative-path URLs with Slim Router

Thanks for the suggestions.
Unfortunately I cannot use 2 vhosts: I have no influence on the main domain and server.
The app necessarily has to be exposed at a sub-path (1 level deep; but I have other apps that are exposed 2-level deep, like /portal-namespace/specific-app/home), that’s why I’m looking for solutions to it.