Generate proper urls for deploying to the Companion App

fixes #268999