aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/Api/DashboardService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-07-12 12:10:48 -0400
committerLuke <luke.pulverenti@gmail.com>2015-07-12 12:10:48 -0400
commit3b96e638a60c11b7716449e2fcb76aa654c98a7f (patch)
treec5e6b4aed205ccbbaf7b8dd427929a8afa3a030a /MediaBrowser.WebDashboard/Api/DashboardService.cs
parent085087fe6a12995a010eb0252222487a9d1480ca (diff)
parentd5c4c2ad0fdac02cce67b3a4f4f02102b468fb62 (diff)
Merge pull request #1134 from MediaBrowser/dev
3.0.5667.5
Diffstat (limited to 'MediaBrowser.WebDashboard/Api/DashboardService.cs')
-rw-r--r--MediaBrowser.WebDashboard/Api/DashboardService.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs
index ce8ad58dd..6eed91b6c 100644
--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs
+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs
@@ -200,9 +200,11 @@ namespace MediaBrowser.WebDashboard.Api
var isHtml = IsHtml(path);
- if (isHtml && !_serverConfigurationManager.Configuration.IsStartupWizardCompleted)
+ // Bounce them to the startup wizard if it hasn't been completed yet
+ if (isHtml && !_serverConfigurationManager.Configuration.IsStartupWizardCompleted && path.IndexOf("wizard", StringComparison.OrdinalIgnoreCase) == -1)
{
- if (path.IndexOf("wizard", StringComparison.OrdinalIgnoreCase) == -1)
+ // But don't redirect if an html import is being requested.
+ if (path.IndexOf("vulcanize", StringComparison.OrdinalIgnoreCase) == -1 && path.IndexOf("bower_components", StringComparison.OrdinalIgnoreCase) == -1)
{
Request.Response.Redirect("wizardstart.html");
return null;
@@ -317,8 +319,9 @@ namespace MediaBrowser.WebDashboard.Api
Directory.Delete(Path.Combine(path, "bower_components"), true);
Directory.Delete(Path.Combine(path, "thirdparty", "viblast"), true);
-
+
// But we do need this
+ CopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "webcomponentsjs", "webcomponents-lite.js"), Path.Combine(path, "bower_components", "webcomponentsjs", "webcomponents-lite.js"));
CopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "webcomponentsjs", "webcomponents-lite.min.js"), Path.Combine(path, "bower_components", "webcomponentsjs", "webcomponents-lite.min.js"));
CopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "velocity", "velocity.min.js"), Path.Combine(path, "bower_components", "velocity", "velocity.min.js"));
CopyDirectory(Path.Combine(creator.DashboardUIPath, "bower_components", "swipebox", "src", "css"), Path.Combine(path, "bower_components", "swipebox", "src", "css"));