Closed (duplicate)
Project:
Short URL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Aug 2009 at 15:30 UTC
Updated:
12 Dec 2010 at 19:45 UTC
Please add support for the rel=shortlink standard so as clients can auto-detect the short links rather than having to manufacture their own.
| Comment | File | Size | Author |
|---|---|---|---|
| UML Sequence Diagram | 70.96 KB | samj |
Comments
Comment #1
irakli commentedGood 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?
Comment #2
samj commentedThanks 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
Comment #3
samj commentedSee 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).
Comment #4
samj commentedTo 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
Comment #5
joshmiller#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
Comment #6
eagereyes commentedI 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?
Comment #7
__mark commentedWouldn'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.