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

Fix redirection to a custom page after login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

          Activity

            People

            • Assignee:
              bugman BugMan virtual user
              Reporter:
              atchertchian Anahide Tchertchian
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: