Fixing URL generation in the config