Addthis share tool is sharing wrong URL

When I try adding either Addthis or Shareit code, i am able to see the tools / social share buttons. But, I have two issues.

  1. when I click share, tool is sharing a wrong URL.
  2. How to configure to get URLs from dynamic page

I have followed the steps outlined by addthis and placed the code in Body of all pages. And, i am able to see the buttons as well. Just need to configure it right to see the correct URLs