ftrain / savepublishing

CoffeeScript code to quickly extract and display all the tweetable statements from a live web page.
http://savepublishing.com
231 stars 25 forks source link

Canonical URLs for enTweetening #32

Open nicbarajas opened 11 years ago

nicbarajas commented 11 years ago

Any chance that the script could try to find a canonical URL before taking the window location? Or is that just the height of silliness?

ftrain commented 11 years ago

Meaning like a single-page view? Probably would need to be site-by-site, with a general matcher rule to catch "printable" views. I'm guessing the Times and a few others would be the most obvious targets.

But another part of me wants it to be exactly the right page/view. That's what the publishers intended.

It's a smart request; I think I just need to think about what this thing is really for. In the meantime it's here in Github and I'll put it into the Beta requests unassigned.

nicbarajas commented 11 years ago

I guess my feeling was less a single-page view, which might be more trouble than it’s worth, and more trying to find a link element with a rel="canonical" attribute. I imagine it’ll often be identical to the original, but in the case of mobile sites, it will point folks to the original article instead.

ftrain commented 11 years ago

oh, rel="canonical" is very sensible

npdoty commented 10 years ago

+1 to rel="canonical"