Add brand redirect for /user/ links

pull/2059/head
syeopite 4 years ago
parent 8b13ab27ea
commit 37db83a94e
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

@ -1649,21 +1649,6 @@ get "/attribution_link" do |env|
env.redirect url
end
get "/user/:user" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}"
end
get "/user/:user/videos" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}/videos"
end
get "/user/:user/about" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}"
end
# API Endpoints
get "/api/v1/stats" do |env|

Loading…
Cancel
Save