Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-113680

Make "Ask question" visible to everyone and redirect to login

    Details

      Description

      Context:
      Although the call to action makes sense in order to make it easier and encourage the guest user to ask questions, we also need to conside the general use case, and this is not an usual pattern in any of the liferay modules oob.
       

      We agreed that it make sense, and may be useful for some cases (like the community), though
       

      We will consider which ways do we have to provide a configuration flag so that this behaviour could be enabled or disbabled when adding the Questions Widget to the page.
       

      In any case, the behaviour would make more sense if after clicking on the "Ask Question" button when you are not logged, and after a sucessfull loging you are redirected directly to the form to fulfill your question.
       

      In fact, we should consider if it's possible to change the behaviour of the button that we have in Blogs, as right now, if you are not logged in, the button logs you and then redirects to the blog's home page, where you need to scroll all the way down to the bottom of the page to find and click again the "Submit a post" button.
       
      https://liferay.slack.com/archives/GP6G10X1A/p1589297428003900?thread_ts=1589296824.001800&cid=GP6G10X1A

      Shouldn't it be preferrable to go directly to the blog edit page right after login?

       

      Acceptance criteria

       

      Given a page with questions and the redirect to login enabled

      When an anonymous user access the page

      Then she will see the "Ask question" button

       

      Given a page with questions and the redirect to login enabled

      When an anonymous user clicks on "Ask question"

      Then she will be redirected to the login screen

       

      Given a page with questions and the redirect to login enabled

      When an anonymous user clicks on "Ask question"

      And performs the login

      Then she will be redirected to the create question form

       
       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  Master