Feature #5232
closed
Show 'My page' after login
Added by Robert Schneider over 14 years ago.
Updated over 4 years ago.
Description
It would be also nice if there would be a user setting that allowes one to get to the My page after login, instead of the Home page.
Generally, a better My page would be nice. With more configuration options. I would be happy if I could see all tickets (observed, assigend to, ...), not only the first 10.
Files
I created a patch for this issue. It doesn't make the "My Page" any prettier, but in "My Account" it allows you to choose whether you would like your homepage to be My Page, or the default index page. Feel free to try it out!
Savannah Durbin wrote:
I created a patch for this issue. It doesn't make the "My Page" any prettier, but in "My Account" it allows you to choose whether you would like your homepage to be My Page, or the default index page. Feel free to try it out!
Thanks, this is very useful.
How this setting get stored in the database?
I don't see any "default_homepage" in the users table.
I'm sorry if I'm asking for a dumb question, I'm not a ruby developer.
- Status changed from New to Closed
- Resolution set to Duplicate
In redmine 2.5.x .. config/route.rb
# root :to => 'welcome#index', :as => 'home'
root :to => '', :controller => 'my', :action => 'page', :as => 'home'
Zack s wrote:
In redmine 2.5.x .. config/route.rb
# root :to => 'welcome#index', :as => 'home'
root :to => '', :controller => 'my', :action => 'page', :as => 'home'
doesn't seems to work on redmine 3.1.0 (internal error) then I modify only with the begin of your patch,
in "app/controllers/account_controller.rb" :
= call_hook(:controller_account_success_authentication_after, {:user => user })
- redirect_back_or_default my_page_path
+ redirect_to :controller => 'my', :action => 'page'
Jean Louis wrote:
doesn't seems to work on redmine 3.1.0 (internal error) then I modify only with the begin of your patch,
This work for me:
root :to => 'my#page', :via => :get, :as => 'home'
my redmine version 4.0.5
file path
"..\redime\htdocs\app\controllers\account_controller.rb"
code is working...
call_hook(:controller_account_success_authentication_after, {:user => user })
redirect_to :controller => 'my', :action => 'page'
Also available in: Atom
PDF