Skip to content

Commit f356a6a

Browse files
authoredJun 18, 2018
Merge pull request #3330 from MediaBrowser/dev
Dev
2 parents cd58ce7 + 5409af1 commit f356a6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+160
-119
lines changed
 

‎Emby.Server.Implementations/Browser/BrowserLauncher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private static void OpenDashboardPage(string page, IServerApplicationHost appHos
2626
/// <param name="appHost">The app host.</param>
2727
public static void OpenWizard(IServerApplicationHost appHost)
2828
{
29-
OpenDashboardPage("index.html?start=wizard", appHost);
29+
OpenDashboardPage("index.html#!/wizardstart.html", appHost);
3030
}
3131

3232
/// <summary>

‎Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

+10
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,16 @@ await Write(httpRes,
628628
return;
629629
}
630630

631+
if (localPath.EndsWith("web/dashboard.html", StringComparison.OrdinalIgnoreCase) && httpReq.UrlReferrer == null)
632+
{
633+
RedirectToUrl(httpRes, "index.html#!/dashboard.html");
634+
}
635+
636+
if (localPath.EndsWith("web/home.html", StringComparison.OrdinalIgnoreCase) && httpReq.UrlReferrer == null)
637+
{
638+
RedirectToUrl(httpRes, "index.html");
639+
}
640+
631641
if (!string.IsNullOrEmpty(GlobalResponse))
632642
{
633643
// We don't want the address pings in ApplicationHost to fail

0 commit comments

Comments
 (0)