Skip to content

Commit

Permalink
Removed duplicate option from route
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 6, 2016
1 parent 817f6ea commit be08d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
get '/explore', to: 'collections#index'
get '/explore/:language-:keyword-libraries', to: 'collections#show'

get '/tree/:platform/:name', to: 'tree#show', constraints: { :name => /.*/ }, to: redirect { |params, request|
get '/tree/:platform/:name', constraints: { :name => /.*/ }, to: redirect { |params, request|
path = "#{Rack::Utils.escape(params[:platform])}/#{Rack::Utils.escape(params[:name])}/tree"
"http://#{request.host_with_port}/#{path}"
}
Expand Down

0 comments on commit be08d6a

Please sign in to comment.