LWC Navigation (NavigationMixin) Bug. CurrentPageReference Becomes undefined and won't navigate?
Wooooow, I finally figured it out. Changing
{
type: 'comm__namedPage',
attributes: {
pageName: yourPageName
}
}
to
{
type: 'comm__namedPage',
attributes: {
pageName: yourPageName,
actionName: 'view'
}
}
fixed it. How? No idea. Did I spend hours on this and am now going to go weep silently in a corner? Yes.