Fixing url update when nesting is disabled and creating legacy URL