title: knockout js data-bind attribute not redirecting the correct page
body: <p>I am maintaining a application developed by another developer. The application built with asp.net and vb.net and it used knockout js. </p>
  
  <p>I am trying to change one link in the code. Though I change the line it goes to the previous link.</p>
  
  <p>The present code is like following</p>
  
  <pre><code>&lt;a data-bind="    text: Title, attr: { 'href': 'jobs/details/default.aspx?v=' + Id }"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I have changed the href attribute into </p>
  
  <pre><code>&lt;a data-bind="    text: Title, attr: { 'href': 'jobs/details/application/list.aspx?v=' + Id }"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>When I run the code it still goes to the default.aspx page instead of application/list.aspx. When I inspected the element (in the browser) I found the code is showing like</p>
  
  <pre><code>&lt;a data-bind="    text: Title, attr: { 'href': 'jobs/details/application/list.aspx?v=' + Id }" href="jobs/details/default.aspx?v=2707"&gt;Process manager&lt;/a&gt;
  </code></pre>
  
  <p>I was not able to find from where <strong>href=</strong> part coming from.</p>
  
  <p>I am providing the knockout js code used in the page here.</p>
  
  <p>Please suggest how can I make it work</p>
  
  <p>The Knockout JS code is like following</p>
  
  <pre><code>var dbVm = {};
  dbVm.jobs = ko.observableArray([]);
  dbVm.applications = ko.observableArray([]);
  dbVm.candidates = ko.observableArray([]);
  dbVm.openJobs = ko.observableArray([]);
  dbVm.newApplications = ko.observableArray([]);
  dbVm.newTasks = ko.observableArray([]);
  ko.applyBindings(dbVm);
  
  
  $(function () {
  
  
  dimNav('dashboard');
  
  $('.tip').width($('.db-wrapper').width());
  
  $('.rvqv').click(function () {
      var cList = $(this).attr('data-cont');
      $('.db-rv-wrapper div.d-tabs').hide();
      $(cList).show();
      $('.rvqv').removeClass('active');
      $(this).addClass('active');
  });
  
  $('.rvqv:first').trigger('click');
  
  //
  //Trigger tips
  //
  $.when(
      $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/CurrentStatus",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
  
      })).done(function (r1) {
          var r = r1.d, totalOj = 0, totalLj = 0,
                  totalNa = 0, totalAra = 0,
                  totalTd = 0, totalInt = 0;
  
          totalOj = parseInt(r.TotalOj);
          totalLj = parseInt(r.TotalLj);
          totalNa = parseInt(r.TotalNewApp);
          totalAra = parseInt(r.TotalAra);
          totalTd = parseInt(r.TotalT);
          totalInt = parseInt(r.TotalI);
  
          $('.e-db-cs #oj h3').html(totalOj);
          $('.e-db-cs #oj #lj').html(totalLj &gt; 0?totalLj:'none');
          $('.e-db-cs #na h3').html(totalAra);
          $('.e-db-cs #na #ara').html(totalNa &gt; 0 ? totalNa : 'none');
          $('.e-db-cs #td h3').html(totalTd);
          $('.e-db-cs #td #int').html(totalInt &gt; 0? totalInt : 'no');
  
  
          if (totalOj &gt; 0 || totalLj &gt; 0) {
              $('#oj &gt; a').removeClass('disabled');
              Tipped.create('#oj', $('#ojDetails')[0], {
                  hook: 'bottomleft',
                  containment: false,
                  showDelay: 400,
                  hideDelay: 300,
                  onShow: function (content, element) {
                      $('#oj &gt; a').addClass('active');
                  },
                  onHide: function (content, element) {
                      $('#oj &gt; a').removeClass('active');
                  }
              });
          } else {
              $('#oj &gt; a').addClass('disabled');
          }
          if (totalNa &gt; 0 || totalAra &gt;  0) {
              $('#na &gt; a').removeClass('disabled');
              Tipped.create('#na', $('#naDetails')[0], {
                  hook: 'bottommiddle',
                  containment: false,
                  showDelay: 400,
                  hideDelay: 300,
                  onShow: function (content, element) {
                      $('#na &gt; a').addClass('active');
                  },
                  onHide: function (content, element) {
                      $('#na &gt; a').removeClass('active');
                  }
              });
          } else {
              $('#na &gt; a').addClass('disabled');
          }
  
          if (totalTd &gt; 0 || totalInt &gt; 0) {
              $('#td &gt; a').removeClass('disabled');
              Tipped.create('#td', $('#tdDetails')[0], {
                  hook: 'bottomright',
                  containment: false,
                  showDelay: 400,
                  hideDelay: 300,
                  onShow: function (content, element) {
                      $('#td &gt; a').addClass('active');
                  },
                  onHide: function (content, element) {
                      $('#td &gt; a').removeClass('active');
                  }
              });
          } else {
              $('#td &gt; a').addClass('disabled');
          }
  
  
      });
  
  
  //
  //Tooltip datas
  //
  $.when(
      $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/OpenVacancyList",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      }), $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/OpenApplications",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      }), $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/UpcomingTasks",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      })).done(function (r1, r2, r3) {
          dbVm.openJobs(r1[0].d);
          dbVm.newApplications(r2[0].d);
          dbVm.newTasks($.parseJSON(r3[0].d));
          momentize();
      });
  
  
  //
  // Recent items data
  //
  $.when(
      $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/RecentlyViewedJobs",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      }),
      $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/RecentlyViewedApplications",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      }),
      $.ajax({
          type: "POST",
          url: "/_services/UtilityService.asmx/RecentlyViewedCandidates",
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      })).done(function (r1, r2, r3) {
          dbVm.jobs(r1[0].d);
          dbVm.applications(r2[0].d);
          dbVm.candidates(r3[0].d);
  
          momentize();
      });
  
  
    });
  </code></pre>
  
  <p>Please suggest me</p>