Fix boostrapper-datetimepicker imports (#586)

When the base url is set, resource file imports need a forward slash at
the beginning. Since it's missing from the datepicker.min.css link,
the Landing Page fails to load correctly causing odd behavior.
This commit is contained in:
David Torosyan 2016-10-15 17:13:55 -07:00
parent b7c47035dd
commit 3850e16280

View file

@ -122,8 +122,8 @@ namespace PlexRequests.UI.Helpers
var sb = new StringBuilder();
var startUrl = $"{content}/Content";
sb.AppendLine($"<link rel=\"stylesheet\" href=\"{startUrl}/datepicker.min.css\" type=\"text/css\"/>");
sb.AppendLine($"<script src=\"{startUrl}/bootstrap-datetimepicker.min.js\"></script>");
sb.AppendLine($"<link rel=\"stylesheet\" href=\"/{startUrl}/datepicker.min.css\" type=\"text/css\"/>");
sb.AppendLine($"<script src=\"/{startUrl}/bootstrap-datetimepicker.min.js\"></script>");
return helper.Raw(sb.ToString());
}