AptUrlRedirector
⇤ ← Revision 1 as of 2009-08-26 18:08:50
1057
Comment: the basic outline
|
1355
moves non-essential JS stuff to "Future enhancements"
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
There should be a simple Web site, probably `apt.ubuntu.com`, that on any URL following a recognized pattern, ''e.g.'' `http://apt.ubuntu.com/p/abiword`, detects whether you are running Ubuntu. If you are, it should | There should be a simple Web site, probably `apt.ubuntu.com`, that on any URL following the pattern `http://apt.ubuntu.com/p/abiword`, detects from your User-Agent string whether you are running Ubuntu. If you are, it should |
Line 3: | Line 3: |
1. `<meta refresh>` to the equivalent `apt:abiword` link 1. if the current window has no back history, close the window; otherwise, go back one page. |
1. `<meta refresh>` to the equivalent `apt:` link, e.g. `apt:abiword`. |
Line 15: | Line 14: |
* Nearly two years after it was first requested, [[http://launchpad.net/bugs/179868|Launchpad does not support apt: URLs]], and there’s no sign of this changing. == Future enhancements == * Once the redirect has happened, if the current window has no back history (''i.e.'' it was opened just for this purpose), close the window; otherwise, go back one page. |
There should be a simple Web site, probably apt.ubuntu.com, that on any URL following the pattern http://apt.ubuntu.com/p/abiword, detects from your User-Agent string whether you are running Ubuntu. If you are, it should
- display a “One moment, please…” page
<meta refresh> to the equivalent apt: link, e.g. apt:abiword.
If you are not running Ubuntu, it should
- display a boilerplate page advising that you can install this package if you install Ubuntu.
Rationale
There are thousands of Weblog systems, forums, wikis, and other CMSes that do not recognize apt: links, and most of them never will.
User stories
Canonical CTO Matt Zimmermann wrote an item on his Web site extolling the virtues of apt: URLs for making Ubuntu software easy to install, only to discover that “WordPress completely destroys the apt: links in this post.”
Nearly two years after it was first requested, Launchpad does not support apt: URLs, and there’s no sign of this changing.
Future enhancements
Once the redirect has happened, if the current window has no back history (i.e. it was opened just for this purpose), close the window; otherwise, go back one page.
AptUrlRedirector (last edited 2010-12-15 12:35:02 by eth0)