Routes: Redirect unknown channel tabs to channel home page

This commit is contained in:
Samantaz Fox
2023-09-16 00:54:14 +02:00
parent 2425c47882
commit ebee973b24
2 changed files with 7 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ module Invidious::Routing
# Channel catch-all, to redirect future routes to the channel's home
# NOTE: defined last in order to be processed after the other routes
get "/channel/:ucid/*", Routes::Channels, :home
get "/channel/:ucid/*", Routes::Channels, :redirect_home
# /c/LinusTechTips
get "/c/:user", Routes::Channels, :brand_redirect