Fix EZP-22426: DetectMobileDevice redirection fails for URI