Exemplo n.º 1
0
        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);
        }
Exemplo n.º 3
0
        public string GetRequestPath(string subpath, string defaultFile)
        {
            var userLocale = _userLanguageService.GetUserLocale();

            if (subpath == "/")
            {
                var spaFilePath = "/" + userLocale + "/" + defaultFile;
                return(spaFilePath);
            }
            return(subpath);
        }