Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [navigationmixin.navigate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

NavigationMixin.Navigate: Use of this is not working to navigate in 'Edit' page of a custom object

NavigationMixin.Navigate: Use of this is not working to navigate in 'Edit' page of a custom object Below is the code: import { LightningElement, api } from 'lwc'; import { NavigationMixin } from '...
RACHANA J's user avatar
-1 votes
0 answers
26 views

What is wrong with this navigation request

building a LWR Community and have a link that doesnt work properly. On clicking a link, lwc logic tries to refresh the current knowledge article view with a new knowledge article. The onclick logic ...
CloudHugger's user avatar
  • 1,757
-2 votes
0 answers
17 views

Articles as a tree in lwc in experience cloud site

I am trying to display Knowledge articles in a tree structure using topic and subtopic in lwc and use that lwc in communities to be exposed to the public. Can anyone point to any resources or samples ...
Paul MAthew's user avatar
1 vote
0 answers
46 views

NavigationMixin.Navigate to recordPage doesn't update record with defaultFieldValues

I want to update Account record through LWC component with predefined values in defaultFieldValues for NavigationMixin.Navigate, standard__recordPage. It shows new default values correctly when edit ...
jacob1342's user avatar
0 votes
0 answers
66 views

NavigationMixin redirect to same community page

I am currently trying to get a use case to work, but am not getting perfect results. I have a header LWC which has a dropdown of records, which redirects to custom summary LWC of the clicked record. ...
Dillon P's user avatar
1 vote
1 answer
60 views

NavigationMixin - standard_component "page not found"

I am working with two LWC's to open the LWC below "demoPDFViewer" in a sub-tab in the console. The sub-tab opens but displays: "This page isn't available in Salesforce Lightning ...
ForrestFairway's user avatar
0 votes
1 answer
33 views

How to land on All view in object page in navigation lwc?

In this code below I am getting 'Recent' view landing page on clicking the url. Even when we remove filtername, then also it's same. Please suggest the filterName for All view this[NavigationMixin....
goose's user avatar
  • 61
0 votes
1 answer
87 views

Refresh Original Record Page's related lists from Related Record's Override Aura/LWC

I'm currently looking for solutions for how to refresh the related lists on a record page from an LWC. Here's what to know: I have an Object Action which has its New button overwridden by an Aura ...
E.Hirsch's user avatar
0 votes
1 answer
104 views

Is anything wrong about navigating to lwc components through url?

I just stumbled over this SE answer about navigating to LWC components by directly calling a URL. this[NavigationMixin.Navigate]({ type: 'standard__webPage', attributes: { url: '/one/...
itsmebasti's user avatar
  • 6,437
0 votes
1 answer
50 views

Navigate to Report in LWC without Apex

I am redirecting to a report in LWC using navigationmixin. Is there a way where I can get the report id without calling apex method in LWC. Below is the code. viewReport( event ) { this[ ...
Alok's user avatar
  • 37
0 votes
2 answers
81 views

Navigation to community page

html <template for:each={linksShortlist} for:item="link"> <li key={link.label} class="nhsuk-grid-column-one-half"> <a ...
blackFire's user avatar
1 vote
1 answer
40 views

Navigation function not working

I have write a lwc component to navigate from sign in page. Navigation function is not working. My code import { LightningElement ,track} from 'lwc'; import doLogin from '@salesforce/apex/...
blackFire's user avatar
-1 votes
2 answers
1k views

Navigate to an experience site page from lwc component on button click event

We have Aura experience Site. It has multiple pages. in one of page named sitePageA, I have lwc component, in lwc component , I am showing buttons. On the button Click I want to open another page - ...
Ankuli's user avatar
  • 670
0 votes
0 answers
82 views

Salesforce Mobile App - Collecting user input / Close modal on device back button

In the Salesforce Mobile App, we have a custom tab with a Lightning component where the user can trigger various actions, and one of the actions requires additional user input. Therefore, a modal (...
Jaka Krajnc's user avatar
0 votes
2 answers
220 views

Navigate to LWR Community Home Page

I have pretty simple Custom Modal LWC. I want it to navigate to Customer Portal Home Page onclose of the modal. Below is the code: import LightningModal from 'lightning/modal'; import {NavigationMixin}...
Vladimir Egikyan's user avatar
-2 votes
1 answer
333 views

LWC navigate to the record detail page after creation

I want to navigate to the record detail page after it has been created using the lightning web component. HTML: <template> <lightning-card title="Create Tender Tracker Support Case&...
Speenzar XaXai's user avatar
0 votes
1 answer
199 views

Issue embedding link in custom label in LWC

In LWC, I have below html template which is showing an error message. error message is stored in custom label. <div class="text_container slds-m-left_medium slds-m-right_medium slds-text-...
Sam Rickert's user avatar
0 votes
0 answers
244 views

LWC navigation in Experience Cloud: redirect to login?

I've got a LWC running in an Experience Cloud page that is public (page 1). When clicking a button, I want it to send users to another page (page 2), but that page is set to require login. Current ...
mscholtz's user avatar
  • 1,324
2 votes
1 answer
168 views

LWC Default field values object layout

I am trying to open a create new record layout from a lwc button, I need that this layout open with some field values prepopulated, I am using NavigationMixin Like this: this[NavigationMixin....
PedroRM's user avatar
  • 55
0 votes
0 answers
258 views

LWC - Using NavigationMixin.Navigate doesn't work in some contexts. I require it to work within a LightningModal component

I have a custom component cmpLookup that has a lightning input. Upon typing a text into this input, records with a matching name are shown. Upon clicking any of the suggestions, user is redirected to ...
Milan Vrškový's user avatar
1 vote
1 answer
393 views

NavigationMixin LWC that wrapped inside Aura not working

I have a Visualforce page where clicking on a button triggers a popup of an LWC. To achieve this, I encapsulated my LWC within an Aura component and invoked this Aura component within the JavaScript ...
Salvation's user avatar
  • 1,189
1 vote
0 answers
133 views

Navigate from LWC to LWC (managed)

I have an issue when navigating from LWC to another inside a managed package. My code is: this.instanceId = event.target.name; var compDefinition = { componentDef: ...
Fran Mejias's user avatar
0 votes
0 answers
139 views

How to open multiple instances using "standard__navItemPage" in a console app?

In salesforce we are using { type: 'standard__navItemPage', attributes: { apiName: 'MyCustomTabName' }, state: { c__recordTypeDeveloperName : 'TestRT', ...
Nagendra Singh's user avatar
1 vote
1 answer
220 views

NavigationMixin in managed package

I am using NavigationMixin to navigate from one lwc to another lwc (app page in a custom tab) like this: this[NavigationMixin.Navigate]({ type: 'standard__navItemPage', attributes: {...
Fran Mejias's user avatar
0 votes
1 answer
119 views

NavigationMixin invalid type after deployment

I have created and deployed a LWC component in a lightning experience page, that when clicked navigates to an other (newly created) experience page page with the following call: this[NavigationMixin....
pascalzon's user avatar
0 votes
1 answer
295 views

Invoke standard Case Merge action via LWC

Would it be possible to invoke the standard Salesforce Case Merge action from LWC? Having a new component like say action-form similar to existing record-form component would work well. for example: &...
Peter Gascoyne's user avatar
0 votes
1 answer
587 views

NavigationMixin.Navigate Not Focusing on the correct subtab

I have a lwc component which calls the below method after save is successful : navigateToEventRecordPage() { this[NavigationMixin.Navigate]({ type: 'standard__recordPage', ...
SFDC Learner's user avatar
0 votes
1 answer
280 views

How to invoke 'Add Line Item' standard action from LWC

I want to invoke Quote Line Item's 'Add Line Item' standard action from a custom LWC. I have tried below code but it's not working. this[NavigationMixin.Navigate]({ type: 'standard__objectPage'...
Pravindra Singh's user avatar
1 vote
1 answer
2k views

How to directly get the full URL of current experience site page in LWC?

I have a certain URL in Experience Site (Its in LWR): https://randomwebpage.sandbox.my.site.com/connect/insights When I use the following code import basePath from '@salesforce/community/basePath'; I ...
Amax1's user avatar
  • 121
0 votes
1 answer
754 views

Is there a way to navigate from a Modal window inside a screen flow into the next screen?

Is there a way to navigate from a Modal window inside a screen flow into the next screen? The use case: We are using a Modal lwc inside a screen flow. The Modal has two buttons [Cancel, Next]. The &...
Moe Najim's user avatar
0 votes
1 answer
614 views

LWC button SendMail Quickaction does not work in Case Lightning Record page

I follow this step: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions_email for creating a button of triggering a SendMail quickaction with LWC. When I ...
FOCOMI's user avatar
  • 15
1 vote
1 answer
1k views

Pass recordId param in Community Page Navigation Mixin

I am trying to navigate to the Order Summary Detail standard page in a B2B LWR experience site, however the page needs the recordId of the Order Summary in order to be able to show the data. How can I ...
Juan Ge's user avatar
  • 13
1 vote
2 answers
337 views

How to do permanent (301) redirection from LWC/Aura to an external website URL (and set redirectCode as 301)

Custom URL redirect requirement as OOTB URL redirect is not an option due to many limitations org has. Requirement - To redirect every URL of a custom subdomain of an experience site to an external ...
sfdcdeveloper's user avatar
0 votes
1 answer
241 views

How to create a reusable class in LWCs with reusable navigationmixin functions?

I have a lot of LWCs that require navigation on events. I wanted to simplify the code by having a common utility that can drive the navigation for all the LWCs in the org. I already have a utility ...
N_H1922's user avatar
  • 315
0 votes
1 answer
2k views

How to Navigate user to Home Page after logging in LWR Site in LWC

I have experience cloud login page which uses LWC and custom Apex controller with system site class to perform login operations. After successful login we get a pageReference URL back from site class. ...
anxiousAvocado's user avatar
0 votes
1 answer
953 views

Lightning record edit form is not navigating to record detail page after saving record

I have lightning-record-edit-form and I need to navigate to the record detail page after it is successfully created. I tried the below code and it is not working. What should I change here? HTML Code:...
coder123's user avatar
  • 107
0 votes
1 answer
634 views

LWC Navigation for "Upload New Version" in Files

I have made custom component using datatable in lwc and in dropdown there is button for "Upload New Version" for files. i want to navigate to standard page using navigation but some how due ...
Dhiren Raut's user avatar
1 vote
1 answer
1k views

LWC - NavigationMixin: Show A List Of Record Types (Closed)

Normally, when we create new record and if that record has different record types, a pop-up will show up with a list of record types when user click create new. I'm trying to aim that with ...
Pam's user avatar
  • 107
0 votes
1 answer
1k views

NavigationMixin.Navigate how to handle onsuccess function?

currently I need some specific logic which requires using NavigationMixin onsuccess event. I spent some time and can’t find any info if it is possible at all Here is my sample of code this[...
Oleksandr Hladun's user avatar
1 vote
0 answers
242 views

connectedCallback not firing when state is used in NavigationMixin

connectedCallback lifecycle event is not firing when state is used during navigation. If state is removed than connectedCallback is firing. This behavior seems strange to me. AM I missing some ...
raunakchoraria's user avatar
1 vote
2 answers
872 views

Call function on lightning-navigation standard__recordPage edit pop-up close

I have a custom lwc that calls an edit pop-up for Event records like this: this[NavigationMixin.Navigate]({ type: "standard__recordPage", attributes: { recordId: ...
molinet's user avatar
  • 925
1 vote
1 answer
349 views

Opening a corresponding record via button

I've tried to search in different locations but I can only see on most is "create button record" My goal here is to create a custom button in my property booking object record page where in ...
Kejer's user avatar
  • 31
1 vote
1 answer
3k views

LWC - NavigationMixin Passing state

I am trying to call an LWC and pass the Id. However the second LWC variable is undefined. First LWC: this[NavigationMixin.Navigate]({ type: 'standard__navItemPage', attributes: ...
some guy's user avatar
  • 141
0 votes
1 answer
458 views

I'm trying to navigate to tab in lwc but getting error page

HTML <lightning-button label="VIEW" title="Toggle content action" icon-name={toggleIconName} onclick={handleAction}> </...
sfdc07's user avatar
  • 3
0 votes
1 answer
612 views

How to set default value for DateTime field in NavigationMixin?

const defaultValues = encodeDefaultFieldValues({ StartDateTime: '2022-08-22 20:00:00', }); this[NavigationMixin.Navigate({ type: 'standard_objectPage", ...
PARAG TALUKA's user avatar
1 vote
2 answers
4k views

Navigate to Newly Record created record using Flow in LWC

I am creating records using Lead from screen flow after creating i want user to navigate to the newly created Record i am using Navigation Mix in and trying to redirect the record . Below is My LWC ...
SFDCSai's user avatar
  • 167
1 vote
1 answer
23k views

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions

I wrote such functionality to see pdf ContentDocument preview of needeed file: viewPdf() { this[NavigationMixin.Navigate]({ type: 'standard__namedPage', attributes: { ...
Yauheni's user avatar
  • 29
3 votes
2 answers
3k views

LWC - NavigationMixin From Flow

I am trying to redirect the user in a flow. It works as the following: Click on URL button -> Redirected to flow -> User fills out LWC embedded in flow -> flow creates record -> Screen ...
some guy's user avatar
  • 141
1 vote
1 answer
1k views

NavigationMixin not working on community

I want to navigate from lwc component firstComponent to a community page enerie test. FirstComponent import { NavigationMixin } from 'lightning/navigation'; export default class FicheNutrition1 ...
jojo's user avatar
  • 89
0 votes
0 answers
37 views

LWC navigation to a tab is showing the 'Loading...' even after refreshing multiple times [duplicate]

We are trying to open an LWC after clicking 'View All' on a related list LWC. But the tab name is showing 'Loading..' and is not updating even if we refresh it. We have tried checking if there is any ...
Hima's user avatar
  • 1