Exemple #1
0
        protected ActionResult EnsureUrl(ReadOnlyUrl url)
        {
            // Ensure redirect is permanent if needed.

            return(string.Equals(url.Path, ViewData.GetClientUrl().Path, StringComparison.InvariantCultureIgnoreCase)
                ? null
                : new RedirectToUrlResult(url, true));
        }