A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1answer
33 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 ...
0
votes
0answers
15 views

Navigation inside Visualforce page not working for lightning component

While trying to reuse the lightning experience in visualforce Page classic. A generic reusable button is built and been reused. However for visualforce we cannot use the same as overlaylibrary was ...
0
votes
1answer
24 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. ...
0
votes
0answers
119 views

$A.get(“e.force:navigateToURL”); TypeError: Unable to get property 'appendChild' of undefined or null reference

We've built a lightning aura component for a community where we have links to other pages outside of Salesforce. we are using the links in the following way: <a onclick="{!c.goToURL}" id="https://...
0
votes
1answer
273 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 ...
-2
votes
2answers
538 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 ...
0
votes
1answer
686 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 ...
1
vote
1answer
32 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 ...
2
votes
0answers
43 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 ...
0
votes
2answers
1k 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....
-3
votes
2answers
1k 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:...
0
votes
1answer
193 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 ...
2
votes
2answers
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 ...