Fix: Redirect to portal with default locale (#5467)

- Redirect to default locale if URL does not provide the locale param
This commit is contained in:
Tejaswini Chile
2022-09-20 23:01:39 +05:30
committed by GitHub
parent d28502b917
commit c556e9c694
3 changed files with 10 additions and 1 deletions

View File

@@ -287,6 +287,7 @@ Rails.application.routes.draw do
end
end
get 'hc/:slug', to: 'public/api/v1/portals#show'
get 'hc/:slug/:locale', to: 'public/api/v1/portals#show'
get 'hc/:slug/:locale/categories', to: 'public/api/v1/portals/categories#index'
get 'hc/:slug/:locale/:category_slug', to: 'public/api/v1/portals/categories#show'