fix error
This commit is contained in:
parent
1c2155a37d
commit
4a8182710b
|
@ -1,6 +1,7 @@
|
||||||
class BreadcrumbWidgetsController < ApplicationController
|
class BreadcrumbWidgetsController < ApplicationController
|
||||||
def widget
|
def widget
|
||||||
params = OrbitHelper.params
|
params = OrbitHelper.params
|
||||||
|
org_params = OrbitHelper.request.query_parameters
|
||||||
url = params["url"]
|
url = params["url"]
|
||||||
crumbs = url.split("/")
|
crumbs = url.split("/")
|
||||||
data = []
|
data = []
|
||||||
|
@ -33,11 +34,11 @@ class BreadcrumbWidgetsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if params[:category].present?
|
if org_params[:category].present?
|
||||||
override_page_name = Category.find(Array(params[:category]).first).title rescue nil
|
override_page_name = Category.find(Array(org_params[:category]).first).title rescue nil
|
||||||
end
|
end
|
||||||
if params[:tags].present?
|
if org_params[:tags].present?
|
||||||
override_page_name = Tag.find(Array(params['tags']).first).name rescue nil
|
override_page_name = Tag.find(Array(org_params['tags']).first).name rescue nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if override_page_name.present?
|
if override_page_name.present?
|
||||||
|
|
Loading…
Reference in New Issue