From d88924c856a0cdc214a527c82add82d218c52219 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 6 Feb 2017 20:49:47 +0000 Subject: [PATCH] fix for #1068 --- Ombi.UI/Views/Admin/Sonarr.cshtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Ombi.UI/Views/Admin/Sonarr.cshtml b/Ombi.UI/Views/Admin/Sonarr.cshtml index 28e2a9140..72498b036 100644 --- a/Ombi.UI/Views/Admin/Sonarr.cshtml +++ b/Ombi.UI/Views/Admin/Sonarr.cshtml @@ -10,6 +10,13 @@ { port = Model.Port; } + + var rootFolder = string.Empty; + if (!string.IsNullOrEmpty(Model.RootPath)) + + { + rootFolder = Model.RootPath.Replace("/", "//"); + } }
@@ -184,7 +191,7 @@ console.log('Hit root folders..'); - var rootFolderSelected = '@Model.RootPath'; + var rootFolderSelected = '@rootFolder'; if (!rootFolderSelected) { return; }