Skip to content

Commit

Permalink
Merge pull request #4415 from skateman/cockpit-worker-redirect
Browse files Browse the repository at this point in the history
Do not store cockpit_redirect when remembering tabs on dashboard
  • Loading branch information
mzazrivec authored Aug 7, 2018
2 parents 68ee3a0 + c3c47b7 commit 31aee6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ def handle_remember_tab
return if request.xml_http_request? || !request.get? || request.format != Mime[:html] ||
request.headers['X-Angular-Request'].present?

return if controller_name == 'dashboard' && %(iframe maintab).include?(action_name)
return if controller_name == 'dashboard' && %(iframe maintab cockpit_redirect).include?(action_name)

remember_tab
end
Expand Down

0 comments on commit 31aee6f

Please sign in to comment.