This commit is contained in:
Nicolas Bally 2016-05-26 01:23:02 +02:00
parent 6e72711795
commit 95f5686b1c
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ module MenuItemsHelper
end
name = menu_item_lang.name
if menu_item_lang.enabled == true and menu_item_lang.visible == true
link_to name, menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug), :class => ("active" if active)
link_to name, menu_item_path(:url => menu_item_lang.url), :class => ("active" if active)
end
end
@ -26,7 +26,7 @@ module MenuItemsHelper
name = menu_item_lang.name+("" if sym and @menu_item and @menu_item == menu_item ).to_s
if menu_item_lang.enabled == true and menu_item_lang.visible == true
menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug)
menu_item_path(:url => menu_item_lang.url)
end
end

View File

@ -304,8 +304,8 @@ Rails.application.routes.draw do
get ':lang/*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
get ':lang/*url.:f' => 'public/menu_items#redirect', :f => "html"
get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
get '*url.:f' => 'public/menu_items#redirect', :f => "html"
root 'public/menu_items#show'