cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]Navigation rule for different default page, help ?

alcy
Champ in-the-making
Champ in-the-making
Hi,

After going through a few forum posts and wiki entries, I tried to change the default page after login to a specific space. I did this by editing the faces-config-navigation.xml file as follows:
<navigation-rule>
      <description>
         The decision rule used by the NavigationHandler to
         determine which view must be displayed after the
         current view, login.jsp is processed.
      </description>
      <from-view-id>/jsp/login.jsp</from-view-id>
      <navigation-case>
         <description>
             Indicates to the NavigationHandler that the browse.jsp
             view must be displayed if the Action referenced by a
             UICommand component on the login.jsp view returns
             the outcome "success".
         </description>
         <from-outcome>success</from-outcome>
         <to-view-id>/alfresco/n/browse/workspace/SpacesStore/85c4b456-1d3d-4b39-bff8-215a2b6077b6</to-view-id>
      </navigation-case>
   </navigation-rule>

So, as you can see I have added the to-view-id after successful login to a specific space. But I am not seeing the desired result. What am I missing here ?
1 REPLY 1

alcy
Champ in-the-making
Champ in-the-making
Ok, two changes had to be made for that code.

First, add one more navigation case for "myalfresco". And second, remove the /alfresco from the url. Start from /n/browse…