fixes #1421 so we generate proper links to the context path web applications in wildfly / liveoak etc