title: Jquery Get data is not returning on redirected page?
body: <p>Jquery Get data is sending through anchor tag by click event. It returns data to anchor tag page correctly but when page is redirected it does not returns data to that page. 
  <br><br>There is the anchor tag code. It is dynamically generated. After clicking this anchor tag jquery sends get data to <i>LikeMail.php</i> page. which then returns to redirected page (viewProfile.php) through ajax method</p>
  
  <pre><code> &lt;a class="profile" href="&lt;?php echo "viewProfile.php?id=" . $record['user_id'];?&gt;" &gt;
                      &lt;img class="img-rounded"
                           src=" &lt;?php echo "../shadi/images/" . $record['user_photo1'] ?&gt;"
                           id="&lt;?php echo $record['user_id']; ?&gt;"alt="" width="70%" height="20%"&gt;
  
                  &lt;/a&gt;
  </code></pre>
  
  <p><br><b>This is Jquery method by which data is sending by Get method</b></p>
  
  <pre><code>$(document).ready(function () {
  $('.profile').on('click', function (e) {
  
      //Get the href Link
      var href = $(this).attr('href');
  
      e.preventDefault();
      $.get("LikeMail.php",
          {user2: $(this).find(".img-rounded").attr("id")}, function (returnedData) {
  
              // Do whatever you want with returend data
              console.log(returnedData);
  
          }).done(function() {
          window.location.href = href;
      });
      });
  
  });
  </code></pre>
  
  <p><br><b>This is ajax function which receives data in redirected page</b></p>
  
  <pre><code>function like()
  {
      var req  = new XMLHttpRequest();
      req.onreadystatechange = function()
  
      {
          if(req.readyState==4 &amp;&amp; req.status==200)
          {
              document.getElementById('Like').innerHTML=req.responseText;
  
          }
      }
      req.open('GET','LikeMail.php','true');
      req.send();
  }
  setInterval(function(){like()},1000);
  </code></pre>
  
  <p>I want to know that why my jquery Get data returns to anchor tag page BUT why not on redirected page. I want to make it work on redirected page</p>