[wishlist] bypass URL shortening if pasted site has '<link rev="canonical' tag?

Bug #376052 reported by Dominic Evans
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gwibber
Confirmed
Wishlist
Unassigned

Bug Description

A number of big sites are now starting to add rev="canonical" tags to point at dedicated (and permanent) URL shortening systems for the particular page.

e.g., flickr.com photo pages now all have

<link rev="canonical" type="text/html" href="http://flic.kr/p/XXXX">

should we consider checking for these before calling is.gd etc. ?

Revision history for this message
Dean Sas (dsas) wrote :

bug 391260 is about adding this specifically for flickr.

Is there a guarantee that the canonical URL is shorter than the usual URL?

Changed in gwibber:
importance: Undecided → Wishlist
status: New → Incomplete
Ryan Paul (segphault)
Changed in gwibber:
status: Incomplete → Confirmed
Revision history for this message
Dean Sas (dsas) wrote :

Does it make sense to check every url for rev="canonical"?

If it doesn't have such a canonical URL (which most of the time it won't) then there's going to be a small but possibly annoying lag as rather than one HTTP request it must now perform two.

Does it make sense to always prefer the canonical URL?

The canonical URLs can be longer than other URL shorteners - http://www.flickr.com/photos/dsas/3805084857/ has a canonical url of http://flic.kr/p/6Nf4ak (23 chars) and an is.gd URL of http://is.gd/2lBDq (18 chars)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.