Replace @ with ~ in the shortlink
[rails.git] / config / routes.rb
index cd7261cdf81a68f1759a835e458eae21448a128f..0a617b6a30a8ed4c766c43704dd599b0aa1a52cc 100644 (file)
@@ -123,7 +123,7 @@ OpenStreetMap::Application.routes.draw do
   match '/forgot-password.html' => 'user#lost_password'
 
   # permalink
-  match '/go/:code' => 'site#permalink', :code => /[a-zA-Z0-9_@]+[=-]*/
+  match '/go/:code' => 'site#permalink', :code => /[a-zA-Z0-9_@~]+[=-]*/
 
   # traces
   match '/user/:display_name/traces/tag/:tag/page/:page' => 'trace#list'