diff --git a/src/BugTracker/Views/Home/Index.cshtml b/src/BugTracker/Views/Home/Index.cshtml index 7313171..34a9f03 100644 --- a/src/BugTracker/Views/Home/Index.cshtml +++ b/src/BugTracker/Views/Home/Index.cshtml @@ -21,7 +21,7 @@ console.log('hub connection open'); }); - var bugsBaseAddress = encodeURIComponent('/api/bugs/'); + var bugsBaseAddress = encodeURIComponent('@Url.Content("~/api/bugs/")'); $.getJSON(bugsBaseAddress, function (data) { var model = data;