From 9b85bc7deb90f3807dcdeb9c0a5be728a530cdf8 Mon Sep 17 00:00:00 2001 From: Kirthi Krishnamraju Date: Mon, 23 Jun 2014 12:33:11 -0700 Subject: [PATCH] Added UrlContent to baseadress --- src/BugTracker/Views/Home/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;