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 [lightningnavigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

navigate to Permission set summary directly from LWC

Is it possible to open Summary page direct from LWC? I tried this[NavigationMixin.GenerateUrl]({ type: 'standard__recordPage', attributes: { recordId: id, ...
pincet's user avatar
  • 911
1 vote
1 answer
61 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
2 answers
83 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
-2 votes
1 answer
331 views

Navigation is not working for quick action,

This code used to work but now it is not working, Now recordId is null so I added Sleep() and recordId is coming the navigation does not work. it is a quick action, maybe something related to new URL ...
Shashwat Chaturvedi's user avatar
1 vote
0 answers
136 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
1 answer
404 views

Highlight the active tab in the navigation menu bar

I have this requirement of highlighting the active tab in the custom navigation menu, below is the code. Can someone suggest how to highlight the particular bar to differentiate. navbar.html <...
chaithaly's user avatar
0 votes
1 answer
630 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
0 votes
1 answer
211 views

onPageReference doesn't work

I have a custom lwc that navigates to an aura and it's working fine but whenever I change the url parameters the onPageReference method from the aura is not working. This is my lwc code: this[...
molinet's user avatar
  • 925
-1 votes
1 answer
221 views

Unable to navigate to salesforce page from Aura application (lightning:navigation)

I've created an aura component to display Contacts list in the form of a data table, When I click on the contact Name I was unable to navigate to salesforce page for that particular contact. <aura:...
Capcena's user avatar
0 votes
1 answer
641 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
2 answers
899 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
2 votes
1 answer
146 views

Account Detail Page is not Refresh

I created a popup model using LWC when user click on a button in account detail Page in service console. .After model is closed service console detail page is not refresh(same page need to refresh). I ...
Basu's user avatar
  • 41
0 votes
0 answers
2k views

navigating from aura to lwc component with background context

I have overriden Opportunity new button with Aura component below. Then I am trying to navigate from aura to LWC with a backgroundContext which means i want to open the lwc just in front of list view ....
sfdc_to_learn's user avatar
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
0 votes
1 answer
134 views

navigatetourl not redirecting to salesforce url

I read a couple of documents about navigating to the page within salesforce by using "navigateToUrl". I used this to navigate to "google.com" it is working as expected but when I'm ...
RKCY's user avatar
  • 323
1 vote
0 answers
332 views

How to use lightning:navigation navigate(pageReference,true) in Salesforce Mobile App?

I have a lightning quick action that is very simple component and redirects to another custom component using lightning:navigation. navigateLightning.navigate(pageReference,true) The replace argument ...
jojopogi's user avatar
  • 502
1 vote
1 answer
612 views

CurrentPageReference setter not getting called when I mock in jest unit test for lwc

referencing this answer:Mocking CurrentPageReference wire in Jest unit tests - LWC This is how I mock CurrentPageReference in the test file , the navigate functionality seem to work but I can't call ...
Snedden Gonsalves's user avatar
0 votes
1 answer
2k views

How can I create dynamic url for Experience Cloud?

So I am trying to do some practice projects on Experience Cloud, I have two questions: How should I write proper navigation within NavigationMixin.Navigate, so type should be standard_webPage but in ...
Nikolas's user avatar
  • 63
1 vote
2 answers
3k views

navService used with lightning:navigation does not work as expected : no redirection is made and no error is shown

Summary I work on a SFDX project with one package, and within my aura component, I'm currently having problems with the lightning:navigation element. I followed the docs from Aura Component - ...
dorian.naa's user avatar
1 vote
1 answer
3k views

Redirect to a Report from an LWC with dynamic parameters not working

I am trying to redirect to a Report from an LWC with dynamic parameters. I tried to do it manually as well nothing works. Any suggestions would be much appreciated. <div> <a href="#&...
Kumara Ravuri's user avatar
0 votes
1 answer
634 views

Navigating to record detail page in a tab in sales console on click of a button in lightning button menu

I have a lightning card placed on a component and it has a lightning button menu , the first button is view where on clicking it, it needs to open a record detail page in a seperate tab, The record id ...
Pavan Sahil's user avatar
0 votes
1 answer
531 views

How can I add a handler to track and set the active tab?

Due to the fact that I need to get two badges, I decided to modify the standard lightning-vertical-navigation (in which there can only be one). But now I don't understand how I can switch the active ...
unique user's user avatar
0 votes
1 answer
87 views

Global navigation layout

Desktop - The global navigation component that is available on the sdfc is a horizontal tab. Can I change the global navigation layout to a global vertical navigation(sticky)during development?? ...
Devesh's user avatar
  • 1
1 vote
1 answer
6k views

Standard Create-record modal in LWC without page redirect?

Is it possible to call the standard create record modal without invoking a page redirect. After reading this thread I learned that you can call the create record event using lightning navigation mixin....
Thomas Raynold's user avatar
1 vote
1 answer
45 views

What difference does the __c make in currentPageReference in code?

What is the difference between keyword and c__keyword in the code below? What is happening below? this.searchKeyword = this.currentPageReference.state.keyword ? this.currentPageReference.state.*...
Gargi Gupta's user avatar
0 votes
1 answer
910 views

Navigating from an Aura component to a Visualforce page gives navigation error 'browser blocks cross-domain cookies'

When navigating from an aura component to a VF Page I get the following error, and I can't figure out why. Note, in the retURL, the component is lightning:urlAddressable Error: We can't display this ...
PartOfTheOhana's user avatar
0 votes
1 answer
2k views

Pass the URL Dynamically Stored in custom Field to LWC Navigation(standard__webpage)

Scenario: I have a Custom Field (dataType: URL) on a Custom Object. I need to Pass this Value to the Navigation(standard__webpage) LWC Service Dynamically. In the code given below "Per__c....
Donald's user avatar
  • 385
0 votes
1 answer
144 views

URL Parameters not being captured in state property onload

I'm trying to pass certain information on click of button from one community page to another through state property of Navigation Mixin. I'm able to successfully navigate to the next page ,however ...
ashwin murugadass's user avatar
0 votes
1 answer
309 views

Lightning web component navigation [closed]

I need to view record page in Console subtab when I click yhe link in lwc.
Guru Mani's user avatar
0 votes
1 answer
266 views

URL to custom object home page

There are two object case and escalation_on_hold__c in case object lightning component i have created a form with case fields and when the button click it will show popup message and in that i have to ...
Mahesh 's user avatar
1 vote
1 answer
16k views

NavigationMixin.Navigate to Record Detail Page is not working for Console Navigation App

I've created a custom form in LWC where I added 2 buttons & this LWC is on Record page on as a Quick Action button(LWC is called from Lightning Flow), Save and Cancel. Both are custom button and ...
SFDCDJ's user avatar
  • 1,864
0 votes
1 answer
179 views

Prevent the double lightning header while navigation to Lightning Web Component

I have a Lightning web component which doesn't fit in the half-sized modal popup screen but I need to open it from the action on the record page. I have found an interesting idea about how this can be ...
Patlatus's user avatar
  • 17.1k
1 vote
1 answer
913 views

LWC: how can i load different lwc components on a page based on a selected option on the same page

Is there a way to load different lwc components on a lightning page based on the value of a setting in another component on the same page? Without reloading the whole page? I want to create a single ...
MWHolland's user avatar
0 votes
4 answers
14k views

LWC Navigation/Routing from one page to another

we are creating job portal on community using LWC. on community, client/vendor can create candidates, post jobs, view their candidates, jobs etc. We have created LWC for all those stuffs. Suppose i ...
Akhtar Husain's user avatar
0 votes
1 answer
495 views

Dynamic Enable/Disable lightning page of a lightning app

There is a requirement, lightning app should have two lightning pages - Order and Pending Order, by default Pending Order will be disabled. And Order lightning page will be loaded. but Once user click ...
Anmol Gupta's user avatar
0 votes
1 answer
3k views

Navigate to list view after button click In lighting

I want to navigate to list view on click of button in a case record. Even if the multiple cases tabs are open I would like to get focus to list view on button click in lighting. is this possible to do....
Anu's user avatar
  • 3,857
0 votes
1 answer
895 views

Navigate to Custom tab on standard object Opportunity

Hi I have created a custom tab on the opportunity flexipage named as "Oferta" as per the req i need to navigate to that tab instead of default summary page of the record as shown in the ...
duminyRuk's user avatar
0 votes
1 answer
11k views

Getting "This page isn't available in Salesforce Lightning Experience or mobile app." with navigation service

I'm using below code to redirect to a lightning component. component.find("navService").navigate({ "type": "standard__component", ...
Manoj's user avatar
  • 444
-2 votes
1 answer
322 views

How to do dynamic routing from one component to another component through anchor tags??Which we usually do in javascript [duplicate]

How to jump within the component sections on the same page on the click of anchor tags. This is usually known as jump link in normal HTML where we navigate through id's specified to each section and ...
Shaik Ilyas's user avatar
0 votes
1 answer
1k views

How to navigate to SObject custom tab?

var urlEvent = $A.get("e.force:navigateToSObject"); urlEvent.setParams({ "recordId": component.get("v.recordId"), ...
Raji Mohan's user avatar
2 votes
1 answer
4k views

Navigation from lwc inside a visual force page

I have overridden a standard salesforce button with Visualforce page. I am using a lwc component inside it using ltng:out. Then from lightning component I want to navigate to some other page but I am ...
Manjot Singh's user avatar
  • 3,516
0 votes
0 answers
73 views

lightning-navigation stopped working post summer 20 release

We are using lightning navigation module in Lightning Web Component to navigate to a page. This was working fine before summer'20 Salesforce release but it stopped working post release. Reset(event)...
sanket kumar's user avatar
  • 15.4k
0 votes
1 answer
35 views

Linking to pages within custom profileMenu component

Friends -- I've created a custom profileMenu.cmp where I'm iterating Menu Items and want to link to a specified page, but can't seem to figure out where I've gone wrong. Any help would be greatly ...
Thomas Shelby's user avatar
0 votes
1 answer
831 views

Retrieve id for page reference for lightning navigation component

I am a beginner in learn lightning. I am trying to create a custom component to display open cases on the home page for a user. Using onlick to open the respective record. But I am unable to retrieve ...
Lightning beginner's user avatar
1 vote
1 answer
3k views

How to add a link to my lightning-tree-grid rows?

I'm using Lightning-tree-grid to display my data and I want to make the first column displayed as a link to the record page, So I tried to make it a button : type: 'button', typeAttributes: ...
collin's user avatar
  • 83
1 vote
0 answers
67 views

"Methods for Lightning Experience" working in the Service Console but not in the Sales Console

I have embedded a custom lightning component on the record page of "Case". When I use the "Methods of Navigation Items" and "Methods for Workspace Tabs and Subtabs" within the "Methods for Lightning ...
Andrea Voggenreiter's user avatar
1 vote
0 answers
3k views

LWC navigation to a tab is showing the 'Loading...' in place of tab name

When I click View All in the below custom LWC component, the below piece of code gets invoked. @track tabName = 'Payments'; navigateToViewAll() { this[NavigationMixin.Navigate]({ ...
Gomathi Hariharan's user avatar
1 vote
1 answer
3k views

NavigationMixin.Navigate does not navigate

I am trying to use an example piece of code by Salesforce, but it's not working for me. It starts with a VF page, which unfortunately is necessary, because it is not possible to add an action to a ...
Sander de Jong's user avatar