Fix the URL aliasing validations (#11814).