Custom Logout Button on Lightning Component in Community
If you want to create your own logout button for a Community Lightning Component, you can use the window.location.replace() javascript function. The button component (note: this example is the button only, you would typically include this in a Notification): <aura:component implements=”forceCommunity:availableForAllPageTypes” access=”global”> <ui:button label=”Logout” press=”{!c.logout}”/> </aura:component> And in your controller, you can redirect the user […]