title: Microsoft Teams Embedded 'Share' button won't pick up current page URL to share -
body: <p>I've been trying to get the 'Share to Microsoft Teams' embedded button to pick up the page it's inserted in's URL to share it directly to MS Teams.</p>
  
  <p>Here are the ressources:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script async defer src="https://teams.microsoft.com/share/launcher.js"&gt;&lt;/script&gt;
  &lt;div
    class="teams-share-button"
    data-href="https://&lt;link-to-be-shared&gt;"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://teams.microsoft.com/share/launcher.js" rel="nofollow noreferrer">Click here to access the JS provided by microsoft</a></p>
  
  <p>Does anyone have any idea how I could get it to work by tweaking a few things ?
  I've attempted to pick up the current URL and have href replaced by it but did not manage :(.</p>
  
  <p>Thank you so much SO community :)
  kind regards,
  d</p>