From: Argiris K. <be...@us...> - 2005-11-03 11:38:58
|
Update of /cvsroot/magicajax/MagicAjax NET 1.1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17746 Modified Files: CallBackHelper.cs Log Message: Redirect uses ResolveUrl now Index: CallBackHelper.cs =================================================================== RCS file: /cvsroot/magicajax/MagicAjax NET 1.1/CallBackHelper.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CallBackHelper.cs 2 Nov 2005 21:53:00 -0000 1.2 --- CallBackHelper.cs 3 Nov 2005 11:38:38 -0000 1.3 *************** *** 283,298 **** { Response.Clear(); ! ! url = url.Trim(); ! if (url[0] == '~') ! { ! string appPath = Request.ApplicationPath; ! if (appPath == "/") ! appPath = String.Empty; ! ! url = url.Remove(0, 1).Insert(0, appPath); ! } ! ! Write(String.Format("window.location.href=\"{0}\";\r\n", url)); End(); } --- 283,287 ---- { Response.Clear(); ! Write(String.Format("window.location.href=\"{0}\";\r\n", ResolveUrl(url))); End(); } |