Project

General

Profile

home page automatic redirect to the issues page of the first user project

Added by Luc Soulier over 14 years ago

Hello,

I would like redirect each redmine's users to the issue page of his own project (1 user = 1 project).

Is it possible ?

Thanks


Replies (1)

RE: home page automatic redirect to the issues page of the first user project - Added by Luc Soulier over 14 years ago

I changed this:

    in config/routes.rb
    Modify the line : map.home '', :controller => 'welcome'
    by : map.home '', :controller => 'issues', :id => 'project_name'

    in lib/redmine.rb
    Modify the line : menu.push :home, :home_path, :html => { :class => 'home' }
    By : menu.push :home, :home_path, :html => { :controller => 'issues', :id => 'project_name' }

    AND in app/views/projects/index.rhtml
    link_to h(project.name), {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "")
    becomes:
    link_to h(project.name), {:controller => 'issues', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "")

but my project's menu does not appear.

    (1-1/1)