8 Replies Latest reply on Jan 29, 2008 11:23 AM by Sourav Mazumder

    How can I change default URL after login to portal?

    Josef Pecinovsky Newbie

      I need to change default page after login and this should be different url for different role. It means that admin gets other page after login than user.
      Which way I can do it? I use JBoss Portal 2.6.1. Thanks for your help.

        • 1. Re: How can I change default URL after login to portal?
          Thad West Newbie

          I am interested in doing this as well....

          • 3. Re: How can I change default URL after login to portal?
            Thad West Newbie

            Okay, so I have been going through the reference guide and I am not really understanding how to do this. There are a few sections that seem relevant:

            Chapter 7 - Page specific URL's?
            Chapter 10 - Use the Portal Event API?
            Chapter 21 - Manipulate the request attribute: org.jboss.portal.header.DEFAULT_PORTAL_URL ?

            A quick explanation of what I am trying to do might be helpful. We have a completely secure portal with 7 pages, no pages are visible without logging in first. Not all users can see all 7 pages, in fact, they may never have any pages in common.

            * Defining 1 default page for the portal is problematic because there is not a common page every user has the authority to see. So, some users will get a 403 when logging in.

            * Handing out different URL's based on user authority is not good either, for a variety of reason that I'm sure I don't have to go into.

            Based on that, is there a specific strategy in the reference guide that I should focus on?

            • 4. Re: How can I change default URL after login to portal?
              Josef Pecinovsky Newbie

               

              "swisst" wrote:
              Okay, so I have been going through the reference guide and I am not really understanding how to do this. There are a few sections that seem relevant:

              Chapter 7 - Page specific URL's?
              Chapter 10 - Use the Portal Event API?
              Chapter 21 - Manipulate the request attribute: org.jboss.portal.header.DEFAULT_PORTAL_URL ?

              A quick explanation of what I am trying to do might be helpful. We have a completely secure portal with 7 pages, no pages are visible without logging in first. Not all users can see all 7 pages, in fact, they may never have any pages in common.

              * Defining 1 default page for the portal is problematic because there is not a common page every user has the authority to see. So, some users will get a 403 when logging in.

              * Handing out different URL's based on user authority is not good either, for a variety of reason that I'm sure I don't have to go into.

              Based on that, is there a specific strategy in the reference guide that I should focus on?


              Yes, I have the same problem. We have no "default" page for all users. And next problem is when user use "one-time" password for login, he should be redirected to password change portlet and all other pages have to be hiden. We want to use special role for one-time password users until they change password (we have our own Identity management modules).

              • 5. Re: How can I change default URL after login to portal?
                Thad West Newbie

                Okay, I thought I would revisit this after updating to the current release. After spending a little time thinking about the problem, it seems to me that there is a fundamental flaw with having to define a default page.

                The default page should be optional, and if it is not specified, the user should be taken to the first page they have the authority to see. Having spent some time in the WebSphere world, this is how their portal product works.

                If we are going to secure(require login) every page, and not every user can see every page and there is no common page, why should I have to create some artificial default page just so my users don't see a 403 error page?

                Comments?

                • 6. Re: How can I change default URL after login to portal?
                  Thomas Heute Master

                  We want to avoid random behavior.

                  "first page they have the authority to see" is not how it should be made. Because this has nothing to do with ordering, It would be a very poor solution. What if some members should see the third page while other should see the fourth one ? Even though they have access to the 3rd one ?

                  Now, someone could work on defining the default page based on rules. Any volunteer ?

                  • 7. Re: How can I change default URL after login to portal?
                    Thad West Newbie

                    I see your point that rules based page selection would be ideal.

                    However, I don't think logging in and seeing the first tab displayed as random behavior. Specifically since the order of the tabs is not random. In the current design, the hoops to jump through in avoiding a 403 error are much more "random" than going to the first tab visible.

                    I'm not suggesting removing the ability to set a default page, just make it optional until the rules based page selection can be figured out. It seems like making the default page optional would be much easier (e.g. quicker) than rules based page selection. And of course, it would solve my problem :-)
                    which does not sound like an uncommon one.

                    Just food for thought...

                    • 8. Re: How can I change default URL after login to portal?
                      Sourav Mazumder Newbie

                      Here is a easy work around I can think of however not sure whether that is the right way to do.

                      In the portal you can have 2 subportals - 1. FirstPage and 2. TheRealPortal (the actual one).

                      The FirstPage portal is set as default portal. So all people will see it. But when a valid user logs in he would be sent to the default page of TheRealPortal.

                      This is the same way today the admin functionality work. When I login as Admin/Admin it takes me to the default page of Admin Portal.

                      Experts, please comment if you see this is acceptable way of achieving the requirement. However, I'm not yet sure how exactly t is implemented.

                      Regards,
                      Rohit