Refactor and simplify config.versionedHome and getVersionedURL method

[#67368004]