From 37f4d0daa55914aa02236b05fd4e0ab479b1fce2 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Wed, 29 Mar 2017 18:02:55 +0200 Subject: [PATCH] adds friendly urls --- config/routes.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 8d5e84ad3..685ea6b76 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -311,6 +311,15 @@ Rails.application.routes.draw do mount Tolk::Engine => '/translate', :as => 'tolk' + # more information pages + get 'more-information', to: 'pages#show', id: 'more_info/index', as: 'more_info' + get 'more-information/how-to-use', to: 'pages#show', id: 'more_info/how_to_use/index', as: 'how_to_use' + get 'more-information/faq', to: 'pages#show', id: 'more_info/faq/index', as: 'faq' + get 'more-information/proposals', to: 'pages#show', id: 'more_info/proposals/index', as: 'more_info_proposals' + get 'more-information/budgets', to: 'pages#show', id: 'more_info/budgets/index', as: 'more_info_budgets' + get 'more-information/participation/facts', to: 'pages#show', id: 'more_info/participation/facts', as: 'participation_facts' + get 'more-information/participation/world', to: 'pages#show', id: 'more_info/participation/world', as: 'participation_world' + # static pages get '/blog' => redirect("http://blog.consul/") resources :pages, path: '/', only: [:show]