Project

General

Profile

Change projects default page

Added by qwerty qwerty over 8 years ago

Is possible to change the project's default landing page (from owerview to wiki for example).
I've seen some other discussion but they do not seem to work on Redmine 2.3.3
Thank you in advance for your answer


Replies (4)

RE: Change projects default page - Added by qwerty qwerty over 8 years ago

I've found a possible answer.
I changed the file config/routes.rb adding this line:
get '/projects/:project_id', :to => 'wiki#show', :as => 'project_wiki'

Now wen you click on a project or you select the project in the dropdown, the landing page of the project is the wiki page.
The problem is that the overview page is no more working because the route projects/:project_id (wich was the original root corresponding to the overview page) is now redirected to the wiki.
In other therms you go to the wiki both if you click on the overview or on the wiki.

Is there a way to set the wiki as landing page for the projects but keep the possibility to view the overview?

Thank you

RE: Change projects default page - Added by Cédric HATEM almost 2 years ago

Hello All,

Sorry to dig up this old thread.

I'm trying to define "Issues list" as default projet page.

I've add following line to my route.rb file.

get '/projects/:project_id/', :to => 'issues#show'

I've also try

get '/projects/:project_id/', :to => 'issues#show', as => 'projet_issues'

But when I try to access it, I get a 404 error message.

Do you have any ideas to mke it works ?

Thanks,

Cédric

RE: Change projects default page - Added by Cédric HATEM almost 2 years ago

It works.

I change for :

get '/projects/:project_id/', :to => 'issues#index'

RE: Change projects default page - Added by Cédric HATEM almost 2 years ago

Again ! ;-)

It works but ...

but I can't go to overview page so I can't create new sub-project.

Do you know How can I solve that ?

Thanks,

Cédric

    (1-4/4)