diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index dbec5ba2..032910eb 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -87,7 +87,8 @@ class PagesController < ApplicationController
end
def load_orbit_bar
- render :partial => 'layouts/orbit_bar', :locals => {:referer => request.referer}
+ @referer = request.referer
+ render partial: 'layouts/orbit_bar'
end
protected
diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb
index 2aa1228f..5fe0ad54 100644
--- a/app/views/layouts/_orbit_bar.html.erb
+++ b/app/views/layouts/_orbit_bar.html.erb
@@ -1,7 +1,7 @@