Questions tagged [lightningnavigation]
The lightningnavigation tag has no usage guidance.
80
questions
-2
votes
1
answer
82
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 ...
0
votes
0
answers
34
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: ...
0
votes
1
answer
216
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
<...
0
votes
0
answers
149
views
How to navigate from screen flow to lwc component passing parameters
We have a screen flow. On click of a button/link and based on a condition, it needs to navigate to
an LWC component passing a parameter to the URL which can be accessed in that LWC component (if the ...
0
votes
1
answer
233
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 ...
0
votes
1
answer
97
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[...
-1
votes
1
answer
112
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:...
0
votes
0
answers
31
views
Unable to populate the Contact field values to Opportunity object record
In Salesforce I am facing a problem while creating an Opportunity record from Contact I have set some default values in url using LC but not getting complete value on Opportunity from Contact
Ex. ...
0
votes
0
answers
222
views
Lightning Flow Navigation using Aura Component
//auracomponent.cmp file
<aura:component access="global" implements="lightning:availableForFlowScreens">
<div class="slds-align_absolute-center" style="&...
0
votes
0
answers
269
views
"standard__webPage" redirects to the same subTab instead of opening a new one for each request
I have a use case where we are use NavigationMixin API to redirect to a new subTab. We are using "standard__webPage" for achieving the same. The issue which I'm facing is that its opening ...
0
votes
1
answer
377
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 ...
1
vote
2
answers
514
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: ...
2
votes
1
answer
114
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 ...
0
votes
0
answers
992
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 ....
1
vote
1
answer
16k
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: {
...
0
votes
1
answer
100
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 ...
1
vote
0
answers
270
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 ...
1
vote
1
answer
495
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 ...
0
votes
1
answer
1k
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 ...
1
vote
2
answers
2k
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 - ...
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="#&...
0
votes
1
answer
541
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 ...
0
votes
1
answer
379
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 ...
0
votes
1
answer
68
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??
...
1
vote
1
answer
5k
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....
1
vote
1
answer
44
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.*...
0
votes
1
answer
863
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 ...
0
votes
1
answer
1k
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....
0
votes
1
answer
124
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 ...
0
votes
1
answer
264
views
Lightning web component navigation [closed]
I need to view record page in Console subtab when I click yhe link in lwc.
0
votes
1
answer
247
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 ...
1
vote
1
answer
12k
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 ...
0
votes
1
answer
136
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 ...
0
votes
1
answer
753
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 ...
0
votes
4
answers
10k
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 ...
0
votes
1
answer
407
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 ...
0
votes
1
answer
2k
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....
0
votes
1
answer
803
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 ...
0
votes
1
answer
9k
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",
...
-2
votes
1
answer
264
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 ...
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"),
...
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 ...
0
votes
0
answers
67
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)...
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 ...
0
votes
1
answer
745
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 ...
1
vote
1
answer
2k
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: ...
1
vote
0
answers
59
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 ...
1
vote
0
answers
2k
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]({
...
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 ...
0
votes
0
answers
120
views
Unable to redirect from Community to Salesforce Org
Error when trying to jump between Community to Salesforce org.
I am using a custom layout template and am not using the navigation menu.
I tried this but this redirected me to the portal
{
type:...