title: Sharing links with query strings
body: <p>I'm trying to set up a LinkedIn share button that needs to share a URL with a query string included. I've tried various combinations of encoding the URL but LinkedIn breaks every option either by removing everything starting with the "=" or by sharing a link with the "=" encoded to "%3D"</p>
  
  <p>How am I supposed to get this to work or is LinkedIn just not going to fix this? </p>
  
  <p>I've set a simple demo of this here: <a href="https://jsfiddle.net/09dopxm5/" rel="nofollow noreferrer">https://jsfiddle.net/09dopxm5/</a></p>
  
  <p>For brevity sake, here's the Javascript I tried to generate a link that would work... </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-js lang-js prettyprint-override"><code>var original_link = "https://www.simplifyingthemarket.com/en/2019/03/07/why-an-economic-slowdown-will-not-crush-real-estate-this-time/?a=311651-adc5cc7d14b39be55e90ff0b2b7bbf6a";
  
  var link1 = escape(original_link);
  var link2 = encodeURI(original_link);
  var link3 = encodeURIComponent(original_link);
  
  var linkedinLink = "https://www.linkedin.com/shareArticle?mini=true&amp;url=";
  
  document.getElementById("link-1").href = linkedinLink + link1;
  document.getElementById("link-2").href = linkedinLink + link2;
  document.getElementById("link-3").href = linkedinLink + link3;
  document.getElementById("link-4").href = linkedinLink + original_link;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href='#' id='link-1' target="_blank"&gt;Share Attempt 1&lt;/a&gt;&lt;br/&gt;
  &lt;a href='#' id='link-2' target="_blank"&gt;Share Attempt 2&lt;/a&gt;&lt;br/&gt;
  &lt;a href='#' id='link-3' target="_blank"&gt;Share Attempt 3&lt;/a&gt;&lt;br/&gt;
  &lt;a href='#' id='link-4' target="_blank"&gt;Share Attempt 4&lt;/a&gt;&lt;br/&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>EDIT - 
  An added piece of info is that we are not sharing the URL that the user is currently on. We're trying to share a personalized version of the post they're currently viewing. </p>