Social sharing buttons javascript bug
Steps to reproduce:
- Disallow PopUps in your browser
- Click on any of the social sharing buttons next to a question, except google+
Expected result:
- The sharing page opens in the current window/tab
Actual result:
- No page opens
- Javascript error log:
ReferenceError: Can't find variable: share_url in post.js:1573
Versions affected:
- 0.7.22 - 0.7.29
- Skins old and default
Comments
I did not see the error in the console, but obviously if you block the pop-ups - they won't open. Current implementation uses pop-up windows - so it is perhaps a misfeature. A js-popup would be nicer, we'll look into that.
Just looked at post.js myself: If you change the name of share_url to url, the sharing page opens in the current window if the popup cannot be opened.
Hmm, did not think of that, I am not sure I like that a whole page from another site will take entire screen. I really prefer a js popup.
Yes, a popup is indeed preferable... perhaps informing the user that the popup could not be opened, as clicking on the sharing buttons and nothing happens is bad behavior, I think.