Questions tagged [lightningnavigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
47 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 - ...
0
votes
0answers
18 views

Is there a way to navigate to the Details tab in the SF1 app from LWC?

Navigate to the details tab in SF1. I am able to navigate to the record page using NavigationMixin. What I am really looking is to land on the details tab in SF1 app?
0
votes
0answers
10 views

lightning-navigation not working in LWC inside Visualforce Page [duplicate]

We have a link button that has a Visualforce Page that calls an embedded Lightning Web Component I'm trying to generate an URL via lightning-navigation but it's always giving me the following value: ...
0
votes
0answers
16 views

How can i realize lightning:navigation to account detail page? Aura Component

help me please, i have a child aura component, and i need to realize redirect on detail page when i clicked on Account Name. <aura:component implements="flexipage:availableForAllPageTypes"...
1
vote
1answer
247 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
0answers
14 views

Navigate to all overdue task on mobile

I developed a lightning component that displays on the salesforce mobile home page the number of overdue tasks. I provided a button to navigate the user to the standard "All overdue" list ...
0
votes
1answer
42 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
1answer
31 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
1answer
17 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
1answer
634 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
1answer
28 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
1answer
591 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
1answer
256 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
1answer
28 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
1answer
46 views

Lightning web component navigation [closed]

I need to view record page in Console subtab when I click yhe link in lwc.
0
votes
0answers
18 views

How to Refresh Visualforce Standard Component in Lightning after Directing to New Record Page?

I have a feeling this is one of those things that isn't supported, but here goes – I have a visualforce page which I am showing in the standard visualforce component in lightning. The page shows ...
0
votes
0answers
98 views

Aura Component: Use Lightning:Navigation to Open default New Record UI, then redirect to Page after Closing New Record UI

We had a VF page that was overriding the 'New' Action on Contacts since 2014 to prepopulate field data using URL Hacking. This isn't playing well with Lightning/Omni-Channel, so we are working on ...
0
votes
1answer
54 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 ...
0
votes
1answer
2k 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
1answer
25 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
1answer
189 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
2answers
888 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
1answer
83 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
1answer
370 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
1answer
242 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
1answer
2k 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
1answer
73 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
1answer
373 views

How to navigate to SObject custom tab?

var urlEvent = $A.get("e.force:navigateToSObject"); urlEvent.setParams({ "recordId": component.get("v.recordId"), ...
2
votes
1answer
2k 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
0answers
52 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
1answer
30 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
1answer
331 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
1answer
1k 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
0answers
20 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
0answers
936 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
1answer
1k 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
0answers
46 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:...
1
vote
2answers
472 views

Evaluation of approach to navigate between 3 LWC pages

Looking at building 3 screens and each has navigation between them using next, previous. Finish button to complete. I know that I could use Lighting Flows to navigate but I would not want to use it. I ...
2
votes
0answers
109 views

Navigation back to the Salesforce Mobile App after Navigating Away

I am attempting to integrate a Vue app into a business process that starts with Salesforce Mobile app. The Vue app needs to access the camera on the mobile device and, as a result, must be hosted ...
0
votes
1answer
419 views

lightning:navigation defaultFieldValues not working in lightning communiy

I have this custom aura component that redirects to New Opportunity standard record creation with some fields pre-populated from Account record. cmp: <aura:component implements="force:hasRecordId,...
0
votes
1answer
271 views

Switching Console Apps generates a Bad Message 414 reason: URI Too Long

I have a LWC where I am switching between Console Apps. Each time I switch, the URL for the Console increases to a point where after about 5 iterations it generates an error. Is there any way to ...
1
vote
2answers
813 views

lightning/navigation in communities lwc

How to navigate to a standard record page in Communities after a record is created. Following i tried it's not navigating though. this[NavigationMixin.Navigate]({ type: '...
1
vote
1answer
158 views

Please help me with the Navigation component

I am trying to call mobiles component from button click on this component , I am unable to call. please help me with this task. I am not getting any error, the button is getting highlighted but ...
3
votes
1answer
632 views

How to navigate to the profile page in Communities using lightning:navigation?

I tried constructing PageReference following documentation - pageReference Types: handleGoToProfile: function(cmp, event, helper) { event.preventDefault(); // const pageReference = cmp.get(...
0
votes
1answer
429 views

use of lightning navigate:navigate from one component to another in lightning community

var eUrl= $A.get("e.force:navigateToURL"); eUrl.setParams({ "url": url }); eUrl.fire(); I am trying to replace above in my code as per documentation it is not ...
0
votes
1answer
546 views

NavigationMixin to standard__objectPage passing recordType value

I want to navigate to a new record creation passing recordType but I don't see nothing in doc that allows me to do that. I understand you can't predifined values for now but, is recordTypeId allowed ...
3
votes
1answer
105 views

How to avoid hardcoding of page name in lightning:navigation?

I need to generate a page URL and use it a link to my page. Users can click on that link and go to the page. controller getPageUrl: function (component) { const navService = component.find(...
1
vote
0answers
187 views

In Salesforce1 app unable to get recordId from currentPageReference wire adapter passed from previous page

I am working on Salesforce LWC in Salesforce1 mobile app. Lwc core functionality @wire(CurrentPageReference) pageRef; is throwing following error on console and i am unable to get recordId from ...
1
vote
0answers
115 views

How to pass parameters from one lwc page to next lwc page on Salesforce1 mobile app?

I am trying to get lightning navigation service state parameters on next page but it is not working that way on Salesforce1 mobile app. Although it is working fine on chrome browser as web app. @wire(...
2
votes
1answer
2k 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 <...