Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [lightningnavigation]

The tag has no usage guidance.

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

Why @wire(CurrentPageReference) pageRef; is causing following JS error

Line: "@wire(CurrentPageReference) pageRef;" in lwc is causing following js error in console log. What is the fix? Error: [LWC error]: Invalid event type "WireContextEvent" dispatched in element <...
0
votes
1answer
14 views

Open child component from parent on the same page

I've made two components: Is the main component. We chose value and based on that value, must be opened 2nd component.(parent) 2nd component (child) I would like do the following (step by step): ...
0
votes
0answers
12 views

After Navigation details are not displayed in second component

First Component: ----------------- This component form is used to create Contact Second Component: ----------------- After creating a contact here ...
-1
votes
0answers
19 views

Query Parameters are not visible in browser url [duplicate]

my Lightning Page: <aura:component> <!-- attributes --> <aura:attribute name="contactId" type="String"/> <lightning:navigation aura:id="navService"/...
0
votes
1answer
27 views

Query String is not added while navigating in lightning

Hi All, I'm trying to navigating to place order page from order details page but the query string is not displayed in the URL section.I'm getting the URL like below: https://sf.force.com/lightning/...
0
votes
0answers
12 views

How to set subtab label of a component opened from another component using only PageReference and not workspace API

When i open a subtab from my main component, the label is loading... I only need to use pageReference type and as per the requirement, i cannot use worksapce API. Need help. My code: ViewCallHistory :...
4
votes
2answers
91 views

LWC Navigation (NavigationMixin) Bug. CurrentPageReference Becomes undefined and won't navigate?

I'm running into a bizarre bug that I can't track down. When using NavigationMixin.Navigate it works just fine MOST of the time. But occasionally, it just stops navigating. Digging into it as much ...
0
votes
0answers
14 views

Using navigateLightning.navigate in AURA is not forming the desired URL correctly in communities

I am trying to navigate to a custom community registration page once users clicks on Register button in login page which is built using AURA. Below is the sample code i am using for this. Component ...
0
votes
1answer
51 views

NavigationMixin.Navigate - Navigate and Set Case Values

Context: Using a lightning web component, I am trying to navigate from the Account page to the Case (New) page/dialog and set the new Case subject dynamically upon arrival. I have managed to make the ...
0
votes
1answer
70 views

Lightning Web Component: Navigation on Button-Click

I am attempting to navigate when a button-click occurs in lightning. Nothing happens when I click the button. Any thoughts on how to make this work? Code sample included: import { LightningElement,...
0
votes
1answer
39 views

LWC in Visualforce Lightning Out context using Lightning Navitagion

The lightning/navigation service doesn't support lightning out. Does anyone have a technique to detect that a LWC is running within Lightning out Visualforce and provide the correct navigation. The ...
0
votes
0answers
38 views

NavigationMixin : pages persist when going back

So I have this setup where I have a searchfield that, upon button click, navigates to a results screen where there is a lightning datatable. Now, the problem is that if I go back from the results to ...
5
votes
1answer
563 views

Is it possible to navigate to a Visualforce page from an LWC

The LWC framework includes the NavigationMixin.Navigate functionality that can be used to obtain URLs or perform navigation to generated URLs. This supports a number of different page types, as ...
1
vote
0answers
23 views

Visualforce/Lightning Button Override Navigation

I'm still stuck in the dark ages in terms of Lightning development, so hoping someone can help me here: I'd like to overrride the edit page of a Quote Line Item and take the user to a Visualforce ...
1
vote
1answer
155 views

LWC: lightning-navigation is not a function

I am trying to use the navigation to custom sObject record edit page by passing recordid as mentioned in the document. However, it says "it is not a function". Any thoughts? import { NavigationMixin ...
1
vote
0answers
48 views

Is there a way to prevent navigation from standard new record page after save

I have a Lightning web component that uses Navigation Mixin to show create new record page for a custom object. I am using the following function for this. this[NavigationMixin.Navigate]({ ...
0
votes
1answer
178 views

Lightning Web Component and NavigationMixin [duplicate]

In my LWC I'd like to open a standard "new record" dialog with predefined values. I know I can use: this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { ...
1
vote
0answers
19 views

Rewrite history using navigation service

I've got a wizard that utilises isUrlAddressable and navigation service to switch between pages. At some page 3 there's a "point of no return" where Lead gets converted and returning to first page ...
1
vote
1answer
166 views

On save navigate to record detail page

I'm a starter in lightning, I have created a component contains input fields of a custom object (session__c) and used that component as a quick action in the Account record page. On clicking of quick ...
0
votes
1answer
38 views

Is it possible to use lightning:navigation inside an aura:application?

What I need is a simple link to the org's home page. The documentation doesn't cover the case of aura:application but only cover the case of aura:component. If I copy-paste the example inside an aura:...
1
vote
1answer
83 views

Unable to navigate to community page using <lightning:navigation

I am using a <lightning:verticalNavigation> which calls a method to redirect to a Lightning Community page. Component <lightning:navigation aura:id="navService" /> <lightning:...