title: URL for Google Plus and Twitter -share doesn't change after ajax load
body: <p>I have a WordPress website using Advanced Ajax Page Loader. On various pages I have a URL share function for Facebook, LinkedIn, Twitter &amp; Google Plus. When clicked the Facebook &amp; LinkedIn button share the current URL - The Twitter &amp; Google Plus buttons only share the URL of the main website (root), unless the page is refreshed.</p>
  
  <p>The code i'm currently using is the following.</p>
  
  <p>In header:</p>
  
  <pre><code>     &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script&gt;(function (d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (d.getElementById(id))
                  return;
              js = d.createElement(s);
              js.id = id;
              js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&amp;appId=390609237745022&amp;version=v2.0";
              fjs.parentNode.insertBefore(js, fjs);
          }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
      &lt;script&gt;!function (d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (!d.getElementById(id)) {
                  js = d.createElement(s);
                  js.id = id;
                  js.src = "https://platform.twitter.com/widgets.js";
                  fjs.parentNode.insertBefore(js, fjs);
              }
          }(document, "script", "twitter-wjs");&lt;/script&gt;
      &lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;
      &lt;script src="//platform.linkedin.com/in.js" type="text/javascript"&gt;lang: nl_NL&lt;/script&gt;
  </code></pre>
  
  <p>Called (on the pages):</p>
  
  <pre><code>&lt;div class="social-icons"&gt;
                          &lt;div class="fb-share-button" data-href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;/div&gt;
                          &lt;!--&lt;div class="fb-like" data-href="&lt;?php //the_permalink();          ?&gt;" data-layout="button" data-action="like" data-show-faces="false" data-share="false"&gt;&lt;/div&gt;--&gt;
                          &lt;div class="in"&gt;
                              &lt;script type="IN/Share" data-url="&lt;?php the_permalink(); ?&gt;"&gt;&lt;/script&gt;
                          &lt;/div&gt;
                          &lt;div class="google"&gt;
                              &lt;g:plusone&gt;&lt;/g:plusone&gt;
                          &lt;/div&gt;
                          &lt;div class="twitter"&gt;
                              &lt;a href="&lt;?php the_permalink(); ?&gt;" class="twitter-share-button" data-lang="en"&gt;&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>I use custom icons for my share buttons.</p>
  
  <p>I've been pretty much looking for a solution for 2 weeks now; any help would be more than welcome!</p>