From 4ff728b62a5b77b244905d2e9dca10635ea3c77b Mon Sep 17 00:00:00 2001 From: Simon Busborg Date: Mon, 8 Aug 2016 12:55:52 +0200 Subject: [PATCH 1/2] added target blank so it opens in another tab --- .../src/views/dashboard/developer/redirecturls.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html b/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html index f7fef60c8e..d6c878e1d5 100644 --- a/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html +++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html @@ -63,11 +63,11 @@
- {{redirectUrl.Url}} + {{redirectUrl.Url}}
- {{redirectUrl.ContentUrl}} + {{redirectUrl.ContentUrl}}
From 69c952ddda60cbc2423f9f3cba943f3a101ddcf9 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 8 Aug 2016 13:10:02 +0200 Subject: [PATCH 2/2] Don't use HttpContext --- src/Umbraco.Web/Redirects/RedirectUrlManagementController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Redirects/RedirectUrlManagementController.cs b/src/Umbraco.Web/Redirects/RedirectUrlManagementController.cs index 47dd8c5eff..30e539f3ec 100644 --- a/src/Umbraco.Web/Redirects/RedirectUrlManagementController.cs +++ b/src/Umbraco.Web/Redirects/RedirectUrlManagementController.cs @@ -2,6 +2,7 @@ using System.Net.Http; using System.Text; using System.Web; +using System.Web.Hosting; using System.Web.Http; using System.Xml; using Umbraco.Core.Configuration; @@ -58,7 +59,7 @@ namespace Umbraco.Web.Redirects [HttpPost] public IHttpActionResult ToggleUrlTracker(bool disable) { - var configFilePath = HttpContext.Current.Server.MapPath("~/config/umbracoSettings.config"); + var configFilePath = HostingEnvironment.MapPath("~/config/umbracoSettings.config"); var action = disable ? "disable" : "enable";