Project

General

Profile

How to implement a redirect (right after login)

Added by Anonymous about 14 years ago

Hi,

I'm using Redmine 0.9.2 & I'm trying to improve on this [redirect thread](http://www.redmine.org/boards/2/topics/1176)

What I've done is created an editable CUSTOM FIELD under the User tab and called it "Homepage". I want to be able to read this field (after login and I know who the user is) and append this to the Settings > Administration > Host name and path and do either an HTTP redirect (or any other type of redirect).

So for example, if you put in your Homepage field something like

projects/myproject/wiki

it will redirect the user (either via a login or a cookie-based login) to

http://HOST_NAME_AND_PATH/projects/myproject/wiki

I'm not sure where to start ... routes.rb doesn't seem to be the place ... I was looking at controller/welcome.rb or views/layout/base.rhtml but not really sure where to go from here.

Thanks,
Chris