public ActionResult EditEntry(string url, string provider) { var entry = _sitemapService.GetEntry(url, provider); var editRouteValues = _sitemapService.GetEntryMetadata(entry).EditRouteValues; var editUrl = Url.RouteUrl(editRouteValues) + "?returnUrl=" + Url.Action("Index"); return(Redirect(editUrl)); }