public string GetRequestPath(string subpath) { var userLocale = _userLanguageService.GetUserLocale(); var spaFilePath = "/" + _distFolder + "/" + userLocale + subpath; return(spaFilePath); }
/// <summary> /// This returns the path to the file for the current users locale /// </summary> /// <param name="subpath"></param> /// <returns></returns> public string GetRequestPath(string subpath) { var userLocale = _userLanguageService.GetUserLocale(); var spaFilePath = "/" + _distFolder.TrimStart('/').TrimEnd('/') + "/" + userLocale + "/" + subpath.TrimStart('/'); return(spaFilePath); }
public string GetRequestPath(string subpath, string defaultFile) { var userLocale = _userLanguageService.GetUserLocale(); if (subpath == "/") { var spaFilePath = "/" + userLocale + "/" + defaultFile; return(spaFilePath); } return(subpath); }