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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user