We're trying to implement a basic LinkedIn share link using the LinkedIn Share API but are running into issues when we try and share our web application URL in particular
JS Fiddle of our implementation with our URL: https://jsfiddle.net/Jmackus/qthgoeL1/3/
<a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/sharing/share-offsite/?url=https://hcm616.peoplestreme.net/linkedintest-sandbox/erec_external.asp">Share this on LinkedIn</a>
We get the below errors from LinkedIn:
in the browser: "Something went wrong"
and in the console: 500 Console error
A 500 error also occurs when using the LinkedIn Post Inspector for our URL as well: LinkedIn Post Inspector error
Post Inspector URL: https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fhcm616.peoplestreme.net%2Flinkedintest-sandbox%2Ferec_external.asp%3FjobId=1
Changing browsers and LinkedIn accounts doesn't resolve the issue and at this point we are unsure what's causing the issue
Does anyone have any ideas on what may be causing this?