I have to add a button that says "Ask a question" which will redirect me to another page in the customer account portal. However, I cannot find "Ask a question" component in customer account template as it is only available under "Napili Template". Is there a way to get it from the other templates or do I have to build a new component?


The ask a question button simply opened a modal which allowd users to post FeedItem QuestionPosts to the community.

enter image description here

If you want a button that redirects to X page with a label "Ask a Question" you will have to create your component (which is very straightforward and can easily be achieved)

for example:


<lightning:button variant="brand" label="Ask A Question" onclick="{! c.handleRedirect}" />


handleRedirect: function (component, event, helper) {
    var urlEvent = $A.get("e.force:navigateToURL");
      "url": "/CommunityUrl"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.