app/controllers/dashboard_controller.rb
class DashboardController < ApplicationController
def show
@shared_admin = shared_admin?
return unless current_profile
# TODO: This is a hack to fix kaminari anchor bug
if params[:paged].present?
return redirect_to dashboard_path(page: params[:page], anchor: :recent)
end
build_dashboard_for(current_profile)
end
end