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

Fix redirection to a given path after login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Login Page

      Description

      For instance:

      1. Enter http://webui.demo.nuxeo.com/nuxeo/ui/?language=fr#!/browse/default-domain/workspaces/Specifications
      2. Log in, you get redirected to http://webui.demo.nuxeo.com/nuxeo/ui/#!/browse/default-domain@view

      This is because the #!/browse/default-domain/workspaces/Specifications part of the URL is not sent to the server, so HttpServletRequest#getRequestURI() doesn't fetch it in NuxeoAuthenticationFilter#saveRequestedURLBeforeRedirect.

      We should find a way to handle such a redirection.

      Yet if we find a way there will still be an issue in NuxeoAuthenticationFilter#saveRequestedURLBeforeRedirect:

              // avoid redirect if not useful
              if (requestPage.startsWith(LoginScreenHelper.getStartupPagePath())) {
                  return true;
              }
      

      Let's say that

      requestPage = ui/#!/browse/default-domain@view

      Since

      LoginScreenHelper.getStartupPagePath() = "ui/"

      the redirection won't occur.

      This works with a jSF URL like

      http://webui.demo.nuxeo.com/nuxeo/nxpath/default/default-domain/workspaces/Specifications@view_documents?tabIds=MAIN_TABS%3Adocuments%2C%3A

      because nxpath doesn't start with nxstartup.faces.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: