From d72e68f0cd4a17388b1d4b31adad14acecb96344 Mon Sep 17 00:00:00 2001 From: Sumit Maitra Date: Sat, 5 Oct 2013 03:58:13 +0100 Subject: [PATCH] Fix to ensure correct URLs on OSX --- MediaBrowser.WebDashboard/Api/DashboardService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index 5cf0f2efa..5ebeaf24a 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -161,7 +161,11 @@ namespace MediaBrowser.WebDashboard.Api /// System.String. private string GetDashboardResourcePath(string virtualPath) { - return Path.Combine(DashboardUIPath, virtualPath.Replace('/', '\\')); + #if __MonoCS__ + return Path.Combine(DashboardUIPath, virtualPath); + #else + return Path.Combine(DashboardUIPath, virtualPath.Replace('/', '\\')); + #endif } ///