Castle.MonoRail.Framework.RoutingModule.GetPathWithoutAppPath C# (CSharp) Method

GetPathWithoutAppPath() private static method

private static GetPathWithoutAppPath ( ) : string
return string
		private static string GetPathWithoutAppPath()
		{
			//if ApplicationPath.Length == 1 then it must be "/" which we don't want to remove
			
			string appPath = HttpContext.Current.Request.ApplicationPath;
			string filePath = HttpContext.Current.Request.FilePath;

			return (appPath.Length == 1) ? filePath : filePath.Remove(0, appPath.Length);
		}