Skip to content

Commit 8867e86

Browse files
committed
Change root routing from Scrivito to StaticPages
1 parent a050f7d commit 8867e86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/routes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Rails.application.routes.draw do
2-
get 'static_pages/home'
3-
42
# Render legal documents by using Keiyaku CSS
53
# https://github.com/cognitom/keiyaku-css
64
resources :docs, only: [:index, :show]
75

6+
# Static Pages
7+
root "static_pages#home"
8+
89
# Redirects
910
get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')
1011
get "/blogs/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')
@@ -19,7 +20,6 @@
1920

2021
# Default Scrivito routes. Adapt them to change the routing of CMS objects.
2122
# See the documentation of 'scrivito_route' for a detailed description.
22-
scrivito_route '/', using: 'homepage'
2323
scrivito_route '(/)(*slug-):id', using: 'slug_id'
2424
scrivito_route '/*permalink', using: 'permalink', format: false
2525
end

0 commit comments

Comments
 (0)