public static void Redirect(string url, string msg, string msgCls) { ResourceManager rm = ResponseManager.ResourceManager; if (rm == null) { throw new InvalidOperationException("The ResourceManager could not be found during the Ext.Redirect."); } if (url.IsEmpty()) { throw new ArgumentNullException("url", "The redirection url is empty"); } if (msg.IsNotEmpty()) { X.Mask.Show(new MaskConfig { Msg = msg, MsgCls = msgCls }); } rm.AddScript("window.location=\"".ConcatWith(TokenUtils.IsRawToken(url) ? url : rm.ResolveClientUrl(url), "\";")); }