LWCBeginnernavigationlightning-navigation
What is navigation in LWC?
Real World Scenario
After creating a record, you redirect user to the new record page. You mention NavigationMixin.
Expected Answer
• lightning/navigation provides NavigationMixin for programmatic page changes
• Generate page references for record pages, list views, named pages, and web pages
• Use NavigationMixin in class extends and call this[NavigationMixin.Navigate](pageRef)
• Prefer standard navigation over window.location for SPA behavior inside Lightning
• Experience Cloud has similar patterns with community-specific page types
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Use standard__objectPage type with objectApiName and actionName home in page reference.
Architect Perspective
NavigationMixin beats window.open for core Salesforce apps—small detail, big credibility.