Correctly generate absolute URIs in `Controller::generateFrontendUrl()`