We are using the Module to share pages which are shown in an overlay, in our case the url of the parent page does not change.
Only the JS "Copy link share button" uses the current window.location.href
which is diffrent to the node url in that case. I will create a patch to solve that problem.
I had some Problems with dev branch (js issues) so is used the 4.0.7 branch an repatched.
Needs work
4.0
Code