Hello,
By default, the new UI redirects to the first page displayed by user rights.
- If the user only enters only timesheets, by default it's /#/timesheets
- If the user has rights on projects, by default it's /#/projects
- and so on...
I would like to change this behaviour and force another URI for every user after login.
What I could do to make this work :
- Identify on server the file ppm-core-app-%.js ($CATALINA_HOME/webapps/pm/js)
- Search for the function $scope.initNavbar and Authorization.getNavigation().then()
- Search for the variable unbindStateWatcher
- Change the redirect $state.go($scope.defaultRoute); by another value for instance $state.go('ideas');
- Minimize js and copy-paste the result into ppm-core-app-%.min.js
- Copy this file into your service app Tomcat Home
Now by default, every user is redirected to Ideas Link.
Is there another way (not hard-coded) to accomplish this ?
Is there a feature in the roadmap of the future versions to set default home page for users (like classic UI) ?
Thanks,
David
PS : Context Clarity 15.7.
PS 2 : If you want to persist changes after service restart, you need to change files within $NIKU_HOME\META-INF\uif\wars\ppm-ux.war
------------------------------
Consultant
CoPrime
------------------------------