Modify ↓
Opened 16 years ago
Closed 16 years ago
#2892 closed enhancement (fixed)
[PATCH] Add shortlink support to download dialog
| Reported by: | Owned by: | team | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | latest |
| Keywords: | download, shortlink, patch | Cc: |
Description
Pasting a normal permalink from osm.org works, but the new shortlink syntax isn't supported.
Here's the ruby code that does the decoding: http://trac.openstreetmap.org/browser/sites/rails_port/lib/short_link.rb
Attachments (1)
Change History (4)
by , 16 years ago
| Attachment: | shortlinks.patch added |
|---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Keywords: | patch added |
|---|---|
| Summary: | Add shortlink support to download dialog → [PATCH] Add shortlink support to download dialog |
comment:3 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



Patch created. Put it is not nice: zoom levels does not fit (there is a "-2" workaround in code).
The shortlink feature is not designed very well: "@" in urls are not a good idea because they have to be escaped. Even if they are escaped the official server does not decode them:
see http://osm.org/go/aa@@@odHv--
this shortlink is created at this permanent link http://www.openstreetmap.org/?lat=14.057645&lon=-22.502361&zoom=18