Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2767

Fix redirection to a custom page after login

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Severity: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 5.1.6, 5.2 M2, 5.2 RC1
    • Fix Version/s: 5.4
    • Component/s: Seam / JSF UI

      Description

      By default, user is redircted to the initial document default view after login:

      <page view-id="/nxstartup.xhtml"
      action="#

      {startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}

      " />

      Comments also advise how to customize the redirection view:

      <!-- To redirect to the user dashboard instead, use instead:

      <page view-id="/nxstartup.xhtml"
      action="#

      {startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}

      " />
      -->

      This won't work by default as method initDomainAndFindStartupPage waits for a document view id, not a jsf outcome id => if 'user_dashboard' does not match a view defined on the document ecm type, the document default view will be used, and 'user_dashboard' will be ignored.

        Activity

        Hide
        Anahide Tchertchian added a comment - - edited

        Workaround would be to add:

        <views>
        <view id="user_dashboard" value="user_dasboard" />
        </views>

        to all document types definition that may be found as root children (Domain in default app).

        I haven't tested it yet.

        Show
        Anahide Tchertchian added a comment - - edited Workaround would be to add: <views> <view id="user_dashboard" value="user_dasboard" /> </views> to all document types definition that may be found as root children (Domain in default app). I haven't tested it yet.
        Hide
        Thierry Delprat added a comment -

        The current code does not allow anymore this kind of configuration.
        In order to have custom startup page, we currently need to override the StartupHelper class.

        Show
        Thierry Delprat added a comment - The current code does not allow anymore this kind of configuration. In order to have custom startup page, we currently need to override the StartupHelper class.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: