Questions tagged [navigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26
votes
3answers
7k views

How to navigate in lightning out?

Actually I am using lightning components with a visualforce page, because this is the only way to override standard button (using VF) today. The problem is that, i need to redirect my user to the new ...
14
votes
1answer
16k views

How to open VF page in lightning Experience using URL link?

Is there a way to open VF page in lightning experience using URL link?. I know we can use sforce.one.navigateToURL but in our case it would not work because The URL link is outside the salesforce. Use ...
12
votes
2answers
1k views

How to open links in Lightning-Experience Setup in other browser-tabs and browser-windows and imporve history+deeplinks

In Aloha UI and other web-apps I typically make massive use of many browser-tabs and multiple browser windows side-by-side on large screens. I open them by right-click on the link, then "open in new ...
11
votes
4answers
25k views

Create record in Lightning with populated fields

Is there a way to use the sforce.one.createRecord to create an Opportunity and fill in fields with data? In Salesforce Classic this was accomplished by adding parameters to the url (ex: ?name=foo). ...
11
votes
2answers
2k views

How to use a strong URL-aware navigation/routing pattern in Lightning?

I've asked a similar question already for Lightning Communities. This question is about the same requirements, but in general. There are many different containers (or environments) for lightning ...
9
votes
1answer
2k views

How is <a>-tag-navigation to URLs and Objects done in Lightning (Summer'18)?

The lost simplicity The docs discourage the use of this pattern <a href="/XXXXXXXXXXXXXXXXXX">Salesforce record ID (DON'T DO THIS)</a> Instead we should Use Navigation Events ...
8
votes
2answers
6k views

Can lightning:navigation be used in Communities

I am trying to implement a navigation mechanism for my community So I am trying to implement the new lightning:navigation component. This is my component - main: MARKUP <aura:component ...
8
votes
2answers
1k views

Navigation in a Lightning App

I am creating my first lightning application and am using the LDS UI framework. I have created a header component with a navigation bar, and embedded this component in my Lightning app. <aura:...
7
votes
2answers
1k views

Link to full site in Salesforce1?

Is it at all possible to create a link in SFDC1 which will open the Safari browser and go to a specific VF page? Or even just go to the SFDC login page? Thx, Hamayoun
7
votes
2answers
3k views

Is $A.get(“e.force:navigateToComponent”) available and documented in Winter'16?

I found the usage of $A.get("e.force:navigateToComponent") described in this answer here How to set up views and navigation in Lightning? But reviewing the documentation, there is only force:...
6
votes
2answers
729 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 ...
6
votes
2answers
6k views

How to use lightning:navigation with force:hasRecordId

Other than the sparse documentation example code I couldn't find any that shows regarding lightning:navigation and lightning:isUrlAddressable. I couldn't get this simple example to run. navigateTo....
6
votes
1answer
6k views

Anchor Tag equivalent in Lightning Component

I'm developing a lightning component to show a complex form. I need to provide navigation between different parts of the form. In HTML, we can do this by anchor tags but I'm not sure what is the best ...
5
votes
1answer
6k views

LWC Navigation: “this[f.NavigationMixin.Navigate] is not a function”

When attempting to use the Lightning navigation service in my component's base class (.js), I get the following error when functionally testing in the UI: this[f.NavigationMixin.Navigate] is not a ...
5
votes
1answer
938 views

What navigation pattern for Lightning Community created be the new Community Builder could be recommended?

I'm not sure what navigation pattern is best for Lightning Communities. Use case is a quite simple: ListView => DetailView navigation hosted on a community page. Reading through @DougChasmans example ...
5
votes
1answer
975 views

Spring19 release:Uncaught (in promise) TypeError

keep getting the following js error in my lightning component after the Salesforce Spring19 release: Can any one help please contextService.js:2 Uncaught (in promise) TypeError: Cannot read property '...
4
votes
1answer
4k views

Winter 17 - Where to customize the Lightning Navigation Menus ?

Looks like Salesforce released Winter 17 in our Sandbox on the weekend and the navigation menu has changed from the left to the top of the screen(which looks very nice actually). Can someone point me ...
4
votes
1answer
2k views

How to get the RelatedListId (rlid) of a certain related list in a custom object?

I have a Master-Detail-Relationship between two Custom Objects. In order to make our app "mobile-ready" I need to navigate with the "sforce.one" object in a VF-Page. For this I need the RelatedListId ...
4
votes
0answers
361 views

Using aura locationChange in lightning communities

After further testing and reading on aura:locationChange component: This event is automatically fired when the hash part of the URL has changed. I understand that, in my community URL, If i ...
4
votes
0answers
1k views

force:navigateToSObject's slideDevName doesn't support in API Version > 37

If you goto this link https://developer.salesforce.com/docs/atlas.en-us.202.0.lightning.meta/lightning/ref_force_navigateToSObject.htm slideDevName - Supported for lightning experience for API 37. ...
4
votes
0answers
2k views

Is /one/one.app#/alohaRedirect/apex/vfPageName ideal solution to open vf page in lightning experience?

We have an issue wherein when a user is redirected to our application from an external point such as an email link and if the user is lightning enabled then the custom VF page does not display the ...
3
votes
2answers
2k views

Lightning Experience - Edit override with nooverride option

We need a conditional override in Lightning Experience which may return a custom component/VF page or will return the standard edit behaviour. We've been investigating various options for returning ...
3
votes
1answer
10k views

Open link in another tab with e.force:navigateToURL

I would open a link in a lightning component in another tab. Here is the code: showAttachment : function(component, event, helper) { var idContentVersion = event.getSource().get("v.title"); ...
3
votes
1answer
1k views

Is $A.componentService.newComponentAsync available in Lightning?

I found @DougChasman using $A.componentService.newComponentAsync in his example here How to set up views and navigation in Lightning? However in the docs I see only $A.newCmpAsync and marked ...
3
votes
1answer
612 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
3
votes
1answer
2k views

Cannot read property 'navigateToSObject' of undefined in Lightning

I am developing a Lightning component that lists related Contacts. I would like to make it so that when you click on the name of a related contact, then it will navigate to that contact's record. Here ...
3
votes
1answer
285 views

How can I manage navigation in salesforce14 one app that was working in Salesforce13?

I have domain abc.force.com and registered two sites abc.force.com/account and abc.force.com/sevicecenters. Here account and service centers are my two communities. I have created a visual force page ...
3
votes
1answer
594 views

Hide Specific Navigation Menu Items using Page Variation ( Audience ) in Salesforce Communtiy

We decided to go with one Salesforce Community for 3 different Partner Types. All of the Partners should be able to see different tabs, and it's working correctly with tabs. In the one case, we have ...
3
votes
1answer
60 views

Building a better Controller - Navigation

Our organization relies heavily on Public Site Visual Force pages for data collection from our user community. These sites contain about a dozen or so VF Pages. The entire site controlled by a ...
3
votes
0answers
148 views

Passing a parameter to visualforce in lightning experience

We have a Visualforce page in Lightning Experience and we are using an apex:outputLink to pass a parameter to the same page, so that we can edit an item on the page. VF Page 'MySetup' Snippet: <...
3
votes
0answers
127 views

Visualforce navigation tab not showing as highlighted in Lightning Experience

The managed app being created has two VisualForce pages with tabs that work fine. One tab is a "list page" of custom objects, which can be clicked on for more detail. The click navigates to one three ...
3
votes
0answers
122 views

Winter 17 Navigation bar does not always highlight selected record

On my winter 17 org, on some objects record the new navigation bar is highlighted when opening a record, like contact: But on others (custom objects and also standard ones), the navigation bar does ...
3
votes
0answers
1k views

e.force:navigate events open browser instead of record in Salesforce1

Does anyone have thoughts as to why force:navigateTo[n] events appear to fire twice in the following scenario? I have a lightning component exposed as a lightning tab inside Salesforce1. At one point ...
2
votes
2answers
1k views

How to open a report using LWC navigation in a new tab?

I'm using the following code to open a report using a LWC card. JS controller navigateToReport(event) { // Navigate to the Contact object's Recent list view. this[NavigationMixin.Navigate]({ ...
2
votes
2answers
2k views

LWC navigation issue in communities

I am trying to redirect on the a href click to a custom visualforce page in lightning. <a href=# onclick={navigateto###} target="_blank"></a> navigateto###() { console.log('...
2
votes
1answer
756 views

Connecting multiple VF pages

What I want to do is have a next button on my first page and from there, I would want to navigate to another VF page. Kind of confused on how to do it and at the same time, also save all the data that ...
2
votes
3answers
2k views

How can you navigate between Lightning Components on a desktop Lightning App?

Good afternoon everyone! I am currently stuck on an issue while developing a desktop Lightning App. Is there currently any native Lightning events or any way to navigate between Lightning components ...
2
votes
2answers
6k views

Salesforce1 navigation - how to go to a Visualforce page?

I've done a bit of tinkering with the Salesforce1 warehouse example (tutorial 6 here). I've successfully adapted the code to work with my own custom object, and I've got records showing up as pins on ...
2
votes
1answer
123 views

Using a selectOption to control Navigation

I have an apex:repeat that runs through a large list of items. Currently we have a number of buttons that allow the user to see the item details in a new window, launch the item in a new window, view ...
2
votes
2answers
574 views

Salesforce1: How to reference the Parent Id on “new” action?

I have a mobile app with two Objects which are linked via Master-Detail. I have overwritten the new page for creating an child record with an custom visualforce page. This page should create an ...
2
votes
1answer
67 views

LWC detect page navigation in Community?

I have a custom Lightning Web Component that is placed on a page in a Customer Community. Community users use the LWC to enter and save data. I would like the LWC to detect when the user tries to ...
2
votes
1answer
1k views

Issue with LWC Flow Navigation

I have an LWC embedded in a flow that has a custom footer. Whenever to click on the custom buttons to navigate the next screen, I get the following error: Uncaught Action failed: flowruntime:...
2
votes
1answer
743 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 <...
2
votes
1answer
2k views

Lightning Community - relative page navigation to page with lightning:input breaks

I have a strange problem that occurs whenever I navigate to another lightning page using an anchor tag with an href value containing a relative URL (e.g. If I have a lightning page with the url "/...
2
votes
1answer
1k views

e.force:navigateToURL does not remove previous url query parameters

on lightning community using napili template when you are on a page with url and query parameters e.g. https://host/path1?name=value then one of the lightning component fires e.force:navigateToURL ...
2
votes
1answer
2k views

Navigation from one page to another with parameters in community builder

I have a use case, where I need to navigate from one page to another in community builder along with a parameter. So that I can use this parameter on the new page. Is this achievable? I know we can ...
2
votes
1answer
290 views

Canvas App Navigation (not Salesforce1)

I have a canvas app embedded using a Visualforce page. From within this canvas application, I would like to the user to be able to navigate back to the contact in salesforce. Using the URLs directly ...
2
votes
1answer
243 views

salesforce1 hyperlink is not working second time

I have 1 publisher action on account object that open a VisualForce Page, content of visualforce page is. <a href="javascript:sforce.one.navigateToSObject('{! account.Id}','detail');"> ...
2
votes
0answers
115 views

Calling this[NavigationMixin.Navigate] re-initializes the component

I have a parent component that handles the navigation for my app and a child component that loads a list of data. Whenever I call this[NavigationMixin.Navigate] it re-initializes the entire parent ...
2
votes
0answers
552 views

Tile Menu Component not displaying

I have a community where I have created 3 custom tile navigation menus. When logged in, the menu shows but when I access the community as a public user the Tile Menu doesn't display. I have allowed ...