Fix EZP-22426: DetectMobileDevice redirection fails for URI
Merge pull request #919 from ezsystems/ezp-22426-mobile_redirect

Fix EZP-22426: DetectMobileDevice redirection fails for URI