Skip to content

Commit

Permalink
feat: check for custom root in config on dashboard index
Browse files Browse the repository at this point in the history
  • Loading branch information
Tao-Galasse committed May 11, 2021
1 parent 31cac2e commit 94c7a46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/trestle/dashboard_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class Trestle::DashboardController < Trestle::ApplicationController
def index
if Trestle.config.root != Trestle.config.path
redirect_to Trestle.config.root and return
end

admin = primary_admin
redirect_to admin.path if admin
end
Expand Down

0 comments on commit 94c7a46

Please sign in to comment.