mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:19:53 +01:00
redirect / to settings page when signed in
This commit is contained in:
parent
d8e98eee98
commit
ea8672c7da
2 changed files with 2 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
class AboutController < ApplicationController
|
||||
def index
|
||||
return redirect_to(edit_user_registration_path) if user_signed_in?
|
||||
return unless Retrospring::Config.advanced_frontpage_enabled?
|
||||
|
||||
render template: "about/index_advanced"
|
||||
|
|
|
@ -13,13 +13,7 @@ Rails.application.routes.draw do
|
|||
mount PgHero::Engine, at: "/pghero", as: "pghero"
|
||||
end
|
||||
|
||||
unauthenticated :user do
|
||||
root to: "about#index"
|
||||
end
|
||||
|
||||
authenticate :user do
|
||||
root to: "about#index", as: :authenticated_index
|
||||
end
|
||||
root to: "about#index"
|
||||
|
||||
get "/about", to: "about#about"
|
||||
get "/privacy", to: "about#privacy_policy", as: :privacy_policy
|
||||
|
|
Loading…
Reference in a new issue