Fixes the issue of multiple prefixes in the CMS URLSegment field