Merge pull request #1592 from MediaBrowser/dev

update take the tour
This commit is contained in:
Luke 2016-03-25 13:48:49 -04:00
commit f6c18200ba

View File

@ -354,11 +354,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase) var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase)
.Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase); .Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);
if (!string.Equals(newUrl, urlString, StringComparison.OrdinalIgnoreCase))
{
httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>"); httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");
httpRes.Close(); httpRes.Close();
return Task.FromResult(true); return Task.FromResult(true);
} }
}
if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase)) if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))
{ {