Questions tagged [navigation]
The navigation tag has no usage guidance.
209
questions
0
votes
1
answer
54
views
Navigate to a URL Addressable LWC from a Visualforce page
We are using a third party package on a custom Visualforce page - it's not possible to use it on an LWC due to security settings. Everything on the Visualforce side is working as intended, however ...
0
votes
1
answer
32
views
NaviagtionMixin within Child Component or Lightning Modal Links to JavaScript Void
When using a lighting modal or child component using NavigationMixin and lightning navigation, GenerateUrl does not work it seems. The result in the promise returns null. Example test code I used ...
0
votes
1
answer
106
views
Is there a way to navigate to a custom list view that I created using list views in salesforce on click of a button using lwc?
I have created a list view in a custom object. I want to navigate to this list view with the click of a custom button or action on another related object.
eg: I have custom objects A and B related via ...
1
vote
1
answer
104
views
LWC equivalent of lightning:unsavedChanges?
I have an LWC component that maintains state for changes the user is doing, without immediately updating those changes into the underlying records. I therefore run the risk of the user "...
1
vote
1
answer
144
views
Populate Lookup Id field in the Navigation Mixing while creating a new record
I have a scenario where I am using Navigation Mixin to create a new record. So during the creation of the new record I want to prepopulate the Lookup record Id in it. But even though I configure the ...
-1
votes
1
answer
117
views
Redirect from Salesforce to Visualforce Page in Community without logging in
My team is currently working to move a Visualforce page to a Digital Experience as for technical security reasons, we need this to run under our white-labeled domain.
We're having a tough time though ...
0
votes
0
answers
51
views
LWC duplicates instance when switching back lightning record tab
Im using a LWC in case record page, however when I switch the tab from the case record page to any other such as the "Welcome" or "Install a Package" the LWC is still alive. But ...
0
votes
0
answers
33
views
Community Navigation LWC in flow component not working
I am building flow component in lwc that communicate with visualforce page. This flow is used in experience cloud and in some conditions I want to direct the user to home page. but the navigation is ...
0
votes
0
answers
48
views
Trying to open filePreview in console app (LWC/Aura)
I'm trying to replicate this functionality, which opens a filePreview in a Standard App to work in a Console App:
this[NavigationMixin.Navigate]({
type: 'standard__namedPage',
attributes: {
...
0
votes
2
answers
136
views
Navigation to community page
html
<template for:each={linksShortlist} for:item="link">
<li key={link.label} class="nhsuk-grid-column-one-half">
<a ...
1
vote
1
answer
57
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/...
-2
votes
1
answer
747
views
LWC navigate to the record detail page after creation
I want to navigate to the record detail page after it has been created using the lightning web component.
HTML:
<template>
<lightning-card title="Create Tender Tracker Support Case&...
1
vote
1
answer
596
views
Routing error on NavigationMixin logout action
I am developing an Experience cloud site with an LWR template. I am trying to create a logout button using the standard code for it:
this[NavigationMixin.Navigate]({
type: "comm__loginPage&...
1
vote
1
answer
2k
views
Pass recordId param in Community Page Navigation Mixin
I am trying to navigate to the Order Summary Detail standard page in a B2B LWR experience site, however the page needs the recordId of the Order Summary in order to be able to show the data. How can I ...
0
votes
1
answer
348
views
page number in vf page
hi all i need pagination in vf page. i've tried increase and reduce currentPage number in navigation button but it didn't work. here my code:
controller:
public PageReference Next() {
...
0
votes
1
answer
222
views
redirection don't work correctly (Navigation)
My component is in the record page of MyObj__c .
MyObj__c has a master detail with Account
I tried to navigate from MyObj__c to the account assorted bu I always get an error
Error : {"status&...
1
vote
1
answer
111
views
Navigation don't work correctly
With this code, I want the moment I click on the button the user moves to the account object (redirection from obj__c to account_c).
obj__c has a Master-Detail relation with the Account .
When ...
1
vote
1
answer
530
views
Cannot See Macros and Quick Text in Console App's Navigation Items
I've created a Console App. I need to add Macro and Quick Text to the Navigation items. I've added them from the App's setting from App Manager. But I cannot see them when I open navigation drop down ...
0
votes
1
answer
2k
views
NavigationMixin.Navigate how to handle onsuccess function?
currently I need some specific logic which requires using NavigationMixin onsuccess event. I spent some time and can’t find any info if it is possible at all
Here is my sample of code
this[...
1
vote
2
answers
1k
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
150
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 ...
1
vote
1
answer
3k
views
LWC - NavigationMixin Passing state
I am trying to call an LWC and pass the Id. However the second LWC variable is undefined.
First LWC:
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes: ...
0
votes
1
answer
400
views
Redirect from visualforce apex controller to lightning page
I would like to initiate OAuth web flow from a button on LWC in Lightning Experience, after redirect on VF page and from VF page back to the original Lightning Page from which the user started.
The ...
0
votes
1
answer
2k
views
Default Navigation Bar Tabs by profile
I want to set the Default Tabs for one single app on a Profile Basis.
Ex:
Sales Reps would have: Accounts, Contacts, Opportunities, Tasks
Sales Exec would have: Account, Contacts, Reports
Sales ...
2
votes
1
answer
2k
views
LWC Content Document preview is not working
I'm having issues with opening a Content Document preview in my LWC component. Here is my code:
HTML:
<template>
<template if:true={files}>
<ul>
<template ...
0
votes
0
answers
1k
views
Navigate to the 'new' object page passing in specific record type Id with LWC
When I click on the button, a new record is generated, I automatically want that when I click on the button, I navigate to the page of the record I just created, but with this code it does not work ...
3
votes
2
answers
4k
views
LWC - NavigationMixin From Flow
I am trying to redirect the user in a flow. It works as the following:
Click on URL button -> Redirected to flow -> User fills out LWC embedded in flow -> flow creates record -> Screen ...
0
votes
1
answer
1k
views
Get Navigation Menu for Experience Cloud User based on Audience
I am attempting to create an LWC component for my orgs Experience cloud related to navigation. I'd like to get the navigation menu for the current user that is based on the audience they are in.
My ...
1
vote
1
answer
2k
views
LWC NavigationMixin Not working
i am trying to create a custom footer for a flow. While trying to navigate to a list page of Survey object the Navigation is not working, Any help would mean a lot.
Thanks!!
<template>
<...
2
votes
1
answer
562
views
Community Builder: Hide/Replace navigation bar in Partner Central template
I am using the Partner Central template in lightning community and want to customize the navigation bar such that it displays a different set of items based on the user. The criteria however, is a ...
0
votes
2
answers
3k
views
Using Navigation Service to redirect user to a Case Object Page in Community site
while I understand how one could navigate from one Standard Page to another within an LWC component, navigating to Object Page within a Community Site is very troublesome to me. I've seen this example ...
0
votes
1
answer
725
views
Navigation Link Set deployment issue from Dev to Sandbox Account
I'm trying install an unmanaged Package from my dev org to a Sandbox org using the Package installation Link. The Package contains the Digital Experience Sites (communities) and a related dependency ...
0
votes
2
answers
562
views
How to push urls to an array in Lightning Web Component
Im trying to make an LWC that shows a list of contact tiles that have their own url to navigate to the contact record page. I cannot seem to get the url to push into the array in the .then method. ...
0
votes
1
answer
3k
views
How do I retireve the record ID of an account related to a contact in an LWC?
Im trying to make an LWC component on the Contact object that displays a link to a related Account. I am using NavigationMixin.GenerateUrl and trying to dynamically pass in the recordId of the related ...
1
vote
1
answer
1k
views
How would I JEST test a @wire(CurrentPagereference)?
I am unable to hit these lines of code even after I added some jest-mocks to my test folder. I am sure that I would have to do something like below, but how would I then hit it to verify what is ...
4
votes
2
answers
6k
views
LWC - NavigationMixin.GenerateUrl promise returns JavaScript:void(0)
In my component, I have an api setter method for recordId and I am generating a URL based on the given recordId inside the setter. I am storing the generated URL and using it as href value like this &...
0
votes
1
answer
485
views
How to expose forceCommunity:navigationMenuBase cmp to be able to select it in theme setup
I have implemented a custom navigation aura component.
<aura:component extends="forceCommunity:navigationMenuBase">
<aura:attribute name="navigationLinkSetId" type=&...
0
votes
1
answer
404
views
Is it possible to get the url or page reference from navigationMenuBase menuItems?
In community builder I have set up a navigation menu, and I know in Aura I can fetch those items using navigationMenuBase and via JS have it navigate to those pages selected. I'm wondering if there is ...
1
vote
0
answers
374
views
Unable to add navigation menu url with dynamic parameters in Community Builder
I am trying to set up a new navigation menu set in community builder, but am receiving an error when trying to navigate to User Profile and User Setting pages.
I have googled a bit, and seen the ...
0
votes
1
answer
6k
views
lwc component does not refresh when navigating back to it from record page
So, I have a lwc component, that is accessed via related list. When I enter the record page, and navigate to the lwc, everything works fine. Then, if I do something on that lwc, save and navigate back ...
0
votes
0
answers
114
views
How to enable MultipleNavigationMenu permission?
I'm trying to extract the NavigationMenu metadata from Salesforce so I can deploy the Object tabs on the Navigation Bar via one of the Salesforce CI/CD tools.
One of the support agents told me I ...
0
votes
1
answer
237
views
2GP packaging error: These entities are not supported: [NavigationLinkSet]
I am creating a new package for communities.
I have included the communityTemplateDefination/lightning bolt/theme defintion and my NavigationMenu (in the navigation menu folder) but when I package it ...
4
votes
0
answers
1k
views
Return Record Id of newly created Record After Using NavigationMixIn.Navigate
I have created a button in a custom LWC that when clicked, the below js runs.
This opens the standard salesforce new record create modal and the user can then enter information to create a new record.
...
0
votes
1
answer
800
views
Weird behavior when navigating to record detail page from lwc
I have a lwc that is wrapped in a urlAddressable aura component. I did this so I can navigate to it from a button in a related list in a record page. This lwc has a "go back" button, which ...
0
votes
0
answers
306
views
Is it possible to attach standard actions like 'Sharing' and 'Change Owner' to custom buttons when creating a custom Record Page in LWC?
Is it possible to attach standard actions like 'Sharing' and 'Change Owner' to custom buttons when creating a custom Record Page in LWC? For 'edit' and 'clone' I'm using NavigationMixin, but what can ...
3
votes
1
answer
900
views
lightning breadcrumb href does full page refresh, how to stop and have faster navigation
I have a lightning component that utilizes lightning-breadcrumbs for output on a page
<lightning:breadcrumbs class="slds-m-around_small">
<aura:iteration items="{!v.response}&...
0
votes
0
answers
1k
views
lightning web component navigate to record edit page with default field value not work
I have a action button which will navigate user to record edit page with a default field value setting.
const defaultValues = encodeDefaultFieldValues({
Stage__c: 'Pending Requestor' ...
0
votes
1
answer
92
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
593
views
pass query parameters to urladdressable aura component with child lwc
I have a lwc inside an aura component urlAddressable. The idea is to navigate to that lwc from a record page, and passing the record id and maybe other data via query paramaters in the url, for ...
0
votes
0
answers
40
views
how to get visualforce url to use in navigation mixin LWC [duplicate]
I'm trying to navigate from a LWC to a visualforce. I had found in an answer here that just using the navigationmixin.navigate with type 'standard_webPage' and attribute with url '/apex/vfpagename' ...