DanielMuller / koken-plugin-photoswipe

Photoswipe integration for Koken
36 stars 13 forks source link

Wrong image is being shared (wrong canonical) #30

Open meulie opened 8 years ago

meulie commented 8 years ago

Hi Daniel,

Excellent work, but I've hit 1 snag with your plugin. If I am on a photo, for example http://daniel.mesphotos.ch/albums/arts-fumee/#&gid=1&pid=010-924-dsc_8337 , and then try to share this one via Facebook by using the share icon top-right it shares http://danielmuller.photos/albums/arts-fumee/ instead.

Is there a way to prevent this from happening?

meulie commented 8 years ago

Hi Daniel,

Do you have a guesstimate of when you'll implement a fix? I'd love to use your plugin... :)

(sorry for being so impatient...)

DanielMuller commented 8 years ago

I forgot about this one, sorry. This problem is unsolvable. Facebook doesn't execute Javascript on the shared URL and will therefore read and interpret only the album page. See https://github.com/dimsemenov/PhotoSwipe/issues/749 for more details.