fix sit breadcrumb for page_type link

This commit is contained in:
manson 2014-07-25 12:24:58 +08:00
parent 96dd726981
commit e0a5798927
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,10 @@ class PagesController < ApplicationController
return return
end end
if page.enabled_for.include? I18n.locale.to_s if page.enabled_for.include? I18n.locale.to_s
if page.page_type == "link"
redirect_to page.external_url
return
end
module_app = page.module.downcase.pluralize module_app = page.module.downcase.pluralize
params[:target_controller] = "#{module_app}" params[:target_controller] = "#{module_app}"
if display_type == "index" if display_type == "index"