Replace kooky URL calculation with fetching it from the configuration.