Rails.application.routes.draw do
  # Accsess from CoderDojo Book
  get '/sotechsha',       to: 'so_tech_sha_overview_page#index'
  get '/sotechsha/:quiz', to: 'so_tech_sha#quiz'

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

Rails.application.routes.draw do
  # Accsess from CoderDojo Book
  get '/sotechsha',       to: 'so_tech_sha_overview_page#index'
  get '/sotechsha/:quiz', to: 'so_tech_sha#quiz'

  # Redirects
  get "/releases/2016/12/12/new-backend", to: redirect('/blogs/2016/12/12/new-backend')
  # Default Scrivito routes. Adapt them to change the routing of CMS objects.
  # See the documentation of 'scrivito_route' for a detailed description.
  scrivito_route '/',              using: 'homepage'
  scrivito_route '(/)(*slug-):id', using: 'slug_id'
  scrivito_route '/*permalink',    using: 'permalink', format: false
end

Use /blogs instead of /releases
Use /blogs instead of /releases
