Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc...
This commit is contained in:
parent
2f6aab7124
commit
1d8e66016c
9 changed files with 213 additions and 2 deletions
|
@ -541,6 +541,7 @@ en:
|
|||
js_2: "OpenStreetMap uses javascript for its slippy map."
|
||||
js_3: 'You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.'
|
||||
permalink: Permalink
|
||||
shortlink: Shortlink
|
||||
license:
|
||||
notice: "Licensed under the {{license_name}} license by the {{project_name}} and its contributors."
|
||||
license_name: "Creative Commons Attribution-Share Alike 2.0"
|
||||
|
|
|
@ -114,6 +114,9 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect '/create-account.html', :controller => 'user', :action => 'new'
|
||||
map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
|
||||
|
||||
# permalink
|
||||
map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+=*/
|
||||
|
||||
# traces
|
||||
map.connect '/traces', :controller => 'trace', :action => 'list'
|
||||
map.connect '/traces/page/:page', :controller => 'trace', :action => 'list'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue