Resolve environment variables in URLs

The following discussion from !396 (merged) should be addressed:

  • @pohl started a discussion:

    @kartmann the switch statement here is necessary, because env variables are not resolved yet in the update url.