diff --git a/config/routes.rb b/config/routes.rb index 33b0129..43adcfc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,8 +17,8 @@ OrbitStore::Application.routes.draw do # You can have the root of your site routed with "root" root 'home#index' - scope "(:locale)", locale: /en|zh_tw/ do - get ':page_id(/:page_id((/:page_id)/:slug))', to: 'pages#show' + scope "(:locale)", locale: /en|zh_tw/ do + get ':page_id((/:page_id)/:page_id/:slug)', to: 'pages#show' resources :pages end # Example of regular route: