forked from saurabh/orbit4-5
fix sit breadcrumb for page_type link
This commit is contained in:
parent
96dd726981
commit
e0a5798927
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue