redirection

This commit is contained in:
Nicolas Bally 2013-10-31 15:00:16 +01:00
parent 4cdde227e6
commit 4f399caa50

View File

@ -172,6 +172,12 @@ CMSnb::Application.routes.draw do
get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html" get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
get '*url.:f' => 'public/menu_items#redirect', :f => "html" get '*url.:f' => 'public/menu_items#redirect', :f => "html"
get ':id/*slug', to: redirect('/%{slug}.html')
root 'public/home#home' root 'public/home#home'