Exemple #1
0
        public IActionResult SetLanguageUrl(string culture, string path)
        {
            var redirect = UrlLocalizationHelper.GetCulturedRedirectUrl(HttpContext, path, culture);

            return(LocalRedirect($"~{redirect}"));
        }
        public IActionResult SetLanguageUrl(string culture, string returnUrl)
        {
            var culturedPath = UrlLocalizationHelper.GetCulturedRedirectUrl(HttpContext, returnUrl, culture);

            return(LocalRedirect($"~{culturedPath}"));
        }