Commit ff21f999 authored by Long Nguyen's avatar Long Nguyen

Fix routing error

parent ffda8a1a
......@@ -91,7 +91,7 @@ Rails.application.routes.draw do
end
end
get '/s/:username', to: redirect('/u/:username/snippets'),
get '/s/:username', to: redirect('/u/%{username}/snippets'),
constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment