From ca994965c2a3607d009d7a5cfea0cf888136c735 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 25 Mar 2016 13:48:18 -0400 Subject: [PATCH] update take the tour --- .../HttpServer/HttpListenerHost.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs index c6452d8f5..3e4f4a70c 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -354,10 +354,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase) .Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase); - httpRes.Write("EmbyPlease update your Emby bookmark to " + newUrl + ""); + if (!string.Equals(newUrl, urlString, StringComparison.OrdinalIgnoreCase)) + { + httpRes.Write("EmbyPlease update your Emby bookmark to " + newUrl + ""); - httpRes.Close(); - return Task.FromResult(true); + httpRes.Close(); + return Task.FromResult(true); + } } if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))