don't show crumbs on dashboard

Change-Id: If63cf2ad12dfce81d8647ed9ac8e39d9f5168e8f
Reviewed-on: https://gerrit.instructure.com/5080
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Whitmer <brian@instructure.com>
This commit is contained in:
Ryan Shaw 2011-08-11 11:01:47 -06:00
parent ec01d52a6e
commit 60b63648df
1 changed files with 5 additions and 0 deletions

View File

@ -209,6 +209,11 @@ class UsersController < ApplicationController
def user_dashboard
get_context
# dont show crubms on dashboard because it does not make sense to have a breadcrumb
# trail back to home if you are already home
clear_crumbs
if request.path =~ %r{\A/dashboard\z}
return redirect_to(dashboard_url, :status => :moved_permanently)
end