Questions tagged [forcenavigatetourl]

For questions related to the force:navigateToURL component in lightning. It is used to Navigate to a specified URL (Relative or absolute).

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

force:navigateToURL has started throwing some exception

Earlier I was using force:navigateToURL to open blob file in new tab but suddenly it has started throwing the exception about startsWith is not a function. "Error in $A.getCallback() [c....
Yogesh Rawal's user avatar
0 votes
0 answers
32 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. ...
Vishnu Nishadraj's user avatar
0 votes
1 answer
112 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
  • 303
0 votes
1 answer
2k views

How to navigate to URL in LWC embedded in Flows Salesforce

i am trying to navigate to a URl from LWC component , which is embedded in FLOWS. I have tried each and every possible to navigate to that URL, but i am not able to, although i have debug and there ...
Mohammed saeed Baig's user avatar
0 votes
1 answer
18 views

values not getting autopopulate from visualforcepage

There is if-else condition added to identify wheter it is lex or classic. In class there is one get;set; public field urlString = '/lightning/o/Asset_perofrma__c/new?useRecordTypeCheck=1&...
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
173 views

urlencoding is not working and redirecting to new record in lightning

In apex class via soql getting record id owner name but it is not redirecting in lightning to new record page and prepopulate values. urlString = '/lightning/o/AssetRegular__c/new/?...
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
93 views

Cannot include User lookup in navigation url

I am using the Spring '20 feature Navigate to a Record’s Create Page with Default Field Values to create a detail page URL button on the Account page called "New Opportunity". It ...
skycafe's user avatar
  • 377
3 votes
1 answer
2k views

Navigate to specific tab on the Account Object

Hi I have created a tab name "Test Client" on the Account Object, beside the previously present Details tab. So there are two tabs on the flexipage of the Account Object == "Details&...
Dumnik's user avatar
  • 31
0 votes
1 answer
1k views

How to use the force:navigateToURL from flow

I have a simple flow which i start with a button this has a screen component with a lightning component. I expect on clicking the button to be navigated to a record. To keep it simple I created a ...
Thomas's user avatar
  • 2,294
0 votes
1 answer
447 views

Navigate to LWC from custom VF component w/outputLink

I need to update an existing custom VF component to navigate to an lwc instead of a VFP. Can I make this work or should I be using a different pattern? lwc myLWC vfp myVFP code <apex:component ...
sunchey's user avatar
0 votes
1 answer
100 views

Pass values of record from Salesforce to Servicenow using e.force:navigateToURL

When doing this even the Status of the Case should be changed to "Closed." So we have created a Apex Controller where we are changing the status of the case and called it in the Lightning Component. ...
Anirudh Kasibhatla's user avatar
1 vote
1 answer
974 views

Lightning pageReference() returns null

I have two components OP_Target and OP_Source. I want to navigate to Target from Source. I have implemented lightning:isUrlAddressable in target and trying to get it's url in source. EDIT:- I have ...
Anand Sharma's user avatar
-2 votes
2 answers
2k views

how to use force:navigateToURL in lightning components to navigate from one lightning component to another in communities? [duplicate]

In communities, navigateToComponent or Lightning:navigation are not supported. So i found over the web force:navigateToURL is the way to go with. I am not able to make this work. I think the URL that ...
Arteezy's user avatar
  • 135
0 votes
1 answer
3k views

Fetch current lightning URL

I want to understand if there is any way to fetch the current lightning component url in salesforce and navigate to it I am using window.location.href = window.location.pathname; in my lightning ...
Madhurima's user avatar
  • 1,265
1 vote
1 answer
86 views

Help navigating from one lightning page to another in communities

I have custom component in communities that contains clickable icons/buttons that are intended to navigate to various knowledge topics. I saw some sample code to use in the developer guide (it ...
ramtwins25's user avatar
2 votes
0 answers
116 views

Community URL Fragment Identifier seems to prevent query execution when setting a default queryString

I have a custom search component that executes a query on keypress - this triggers a force:navgatetourl event. My query string contains, a query, and a fragment identifier with custom parameters that ...
glls's user avatar
  • 20k
0 votes
2 answers
2k views

e.force:navigateToURL throwing error

Below is the javascript function in AccountListcontroller.js that fires on clicking a button on lightning component,but it is throwing error This page has an error. You might just need to refresh it....
devforce's user avatar
  • 1,543
-3 votes
2 answers
2k views

Navigate to URL is not working

I have a lightining component code with controller for redirecting the page,while redirecting the page,the url i have posted having parsing error issue My tried lightining component code: <aura:...
Cheedella Tejaswini's user avatar
0 votes
1 answer
609 views

Navigation in Lightning app Using change in Url which supports browser back button

I am creating a lightning app in which I have different sidebar menus, which should take the user to different page inside the same app. I have done this by dividing the parent component in two part ...
Amrit Kumar Sharma's user avatar
2 votes
2 answers
2k views

force:naviagetoUrl not handling external link when adding community redirect_uri

When I try to redirect users using force:navigateToURL and i specify a redirecturi which is within my community, it seems to ignore the external reference, and treat it as a community page. For ...
glls's user avatar
  • 20k