Please add support for the rel=shortlink standard so as clients can auto-detect the short links rather than having to manufacture their own.

CommentFileSizeAuthor
UML Sequence Diagram70.96 KBsamj

Comments

irakli’s picture

Status: Active » Fixed

Good suggestion, but two possible issues with it:

1. ShortURL does not currently generate any links, it's a developer API that returns tokens for a URL.
2. If I am not mistaken "rel=shorturl" is not standard markup and would make pages fail validation, unless corresponding schema is added to the header of HTML, which is not the case for most standard Drupal templates?

samj’s picture

Status: Fixed » Active

Thanks for the feedback. I've been discussing it with a few people at DrupalCon Paris this week and those I've spoken to seem to think it's a good idea. How it would/could look is a hook that just used "node/" by default but which could be "extended" by modules which use custom domains, custom paths (eg "http://ms.com/win7" -> "http://microsoft.com/windows7"), statistics, third-party services (tinyurl, bit.ly, etc.). I guess that answers 1 and for 2 there's no problem as LINK itself *is* a standard - for example: http://tinyurl.com/l82wua

Note that wordpress.com added support for the standard with its wp.me service and has committed to include the feature in the Wordpress software - with that shot in the arm (100m+ pages) I've been able to approach client developers about adding support (no point advertising the links if nobody looks at them).

Unfortunately we have code freeze looming and no code (beyond that which I can come up with today) to review :(

Sam

samj’s picture

See also #552478: Restrict "self-closing" tags to only void elements in drupal_pre_render_html_tag (seems the looming code freeze may not have been such a big problem after all).

samj’s picture

To clarify, the issue referenced above both moves the html head to structured data which can be 'alter'ed and sets rel=canonical and rel=shortlink elements and/or headers. What this means is that the default 'node/' format can be overridden by modules like this one in order to give even shorter URLs.

Other ideas include substituting a custom domain, using a human-friendly path (like 'win7' rather than 'aEz') or calling a third-party link shortening service.

Sam

joshmiller’s picture

Status: Active » Closed (duplicate)

#552478: Restrict "self-closing" tags to only void elements in drupal_pre_render_html_tag was committed. This issue is closed unless it somehow is requesting something other than what core now supports?

Josh

eagereyes’s picture

I don't understand how this is resolved by the issue you're linking to. That other one is for Drupal 8, right? What if I wanted to add the header field now, using Drupal 6?

__mark’s picture

Wouldn't this issue be more appropriate in the http://drupal.org/project/nodewords queue? Since that module actually deals with adding meta tags and the like, unlike this module.