'LinkedIn URL share issue, full url is not getting shared in feed

When I click on linkedin share button the url will get shared. URL contains id at the end like ?id=30.html. While sharing it is posting till ?id. in feed.

window.open('https://www.linkedin.com/shareArticle?mini=true&url='+jdURL1+'&"target="_blank"');

Please check this and let me know the possibilities, Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source