Project

General

Profile

Assistance Required for Default Landing Page Implementation in Redmine 6.0.3

Added by KUNTAL MONDAL 13 days ago

We need your assistance in implementing a feature where application users always land on the "My Page" screen by default post login to application.
This was previously implemented in Redmine 2.3.4 and 5.1.1 using below changes, but it is not working in Redmine 6.0.3.
Could you please provide a possible solution for this feature?

go to the path /opt/bitnami/redmine/app/controllers and add below in the account_controller.rb
redirect_to :controller => 'my', :action => 'page’

insight def successful_authentication(user)


Replies (2)

RE: Assistance Required for Default Landing Page Implementation in Redmine 6.0.3 - Added by Sarah Solis 9 days ago

Hey Kuntal, thanks for sharing! That account_controller.rb modification looks familiar. I remember similar redirects back in the day when I was sneaking in sessions at work (lol!). For Redmine 6.0.3, have you checked the after_sign_in_path_for method in the ApplicationController? It might be a cleaner, more Rails-y way to override the default login redirect. Worth a look!

    (1-2/2)