• Olalla Iglesias Alcalá
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have 'customPage' created in Community Builder and I need to navigate a user to this page from my Lightning component inside other community page.

I've tried to use direct link:
<a href="custom-page">Custom Page</a>
it works, but with browser refreshing, that's not appropriate, I need the same behavior as Top Navigation have.

And I've tried the second approach:
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
  "url": "custom-page",
  "isredirect": true
});
urlEvent.fire();
again, it works, but it opens new tab|window what isn't thery helpful

So, how to handle such simple action within community?
P.S.: I'm using Napili template for my community.