redirect / to settings page when signed in

This commit is contained in:
Jyrki Gadinger 2024-09-05 10:38:36 +02:00
parent d8e98eee98
commit ea8672c7da
2 changed files with 2 additions and 7 deletions

View file

@ -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"

View file

@ -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