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:
parent
ec01d52a6e
commit
60b63648df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue