• Pinali Patel
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi,
I created a lightning component that I embed in Community Builder custom page.
I called a apex controller function that will redirect to the Community Builder Home Page

This is my apex method
@AuraEnabled
    public static pageReference redirectToHomePage() {
        pageReference objHomePage = new PageReference('/');        
        return objHomePage;
    }

I'm not sure exactly how to call the Community Builder Home Page
I also get an error 'Return type does not support AuraEnabled'

I just want to redirect to Community Builder Home Page

  • April 29, 2016
  • Like
  • 0