allow construct Redirect url using string format arguments
fix NPE in UADetector::preHandle