Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [url]

referring to the web path url or uniform resource locator

Filter by
Sorted by
Tagged with
17 votes
4 answers
84k views

Getting the URL parameter into Lightning component using the "{! paramName}" expression

I am new to communities in lightning and I am trying to figure out a way to directly fetch the URL parameters into the lightning component attributes using the {! urlParamName} expressions. for ...
Tarique Shamim's user avatar
12 votes
1 answer
3k views

Referencing Externally Available Images Absolute URL with My Domain?

Question Is there a way to reference externally available images when using my domain, such that it doesn't reference the data center? When I copy the url from the document itself the url still ...
Ralph Callaway's user avatar
12 votes
3 answers
9k views

How to access and not hardcode the field ID for a custom object? Using Apex, to construct URLs

Lets say you wanna create a new instance of a custom object, lets call this Custom Object Relationship_Detail__c. You are trying to create a link where it takes you to the proper RecordTypeId and it ...
user10009's user avatar
  • 171
11 votes
1 answer
13k views

What is the longest URI that Salesforce will accept through the REST API?

The Background I was handed a task to populate a developer sandbox with a limited set of data from our production org to allow another dev team to be able to test integration with a third party (with ...
Derek F's user avatar
  • 62k
10 votes
2 answers
19k views

How to pass URL parameters to a Lightning App page, to load LWC in context of a record?

I want to make a standalone salesforce page that loads data specific to a current member. I tried making an App page, however when I load /lightning/n/MyAppPage?recordId=something it redirects to /...
Andy Ray's user avatar
  • 1,458
10 votes
2 answers
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 ...
Uwe Heim's user avatar
  • 28.4k
9 votes
4 answers
2k views

What can be done with SSL + Communities + Force.com Site + Branded Domain

I'm getting mixed messages online regarding SSL support for a Force.com site that is branded with a custom URL domain: These two articles, Registering a Custom Force.com Domina and Registering a ...
Jan Julian's user avatar
  • 2,634
7 votes
2 answers
12k views

LWC: Is it safe to rely on window.location.href to get the page url?

Is the SF team planning on deprecating support for the window object? If so is there a lwc way to get the current url for the loaded page of the component? I couldn't find anything going through the ...
Arthlete's user avatar
  • 4,907
7 votes
2 answers
4k views

Lightning new URL format navigate to visualforce

In current code we use something like: <apex:outputLink value="/one/one.app#/alohaRedirect/apex/TestVisualforcePage" Anyone knows how we can convert this so it works with the new lightning URL ...
Loannies's user avatar
  • 105
7 votes
1 answer
4k views

Get all Community urls in Apex

The title is pretty much self explanatory, but I wanted to know if there is a way by which I can access all Community urls provided I have proper permissions set. I already looked at Network class ...
SEuser's user avatar
  • 1,855
6 votes
1 answer
8k views

Passing parameters to a Lightning Component inside a Lightning Tab

I created a lightning component that basically needs to receive an Account Id to work with, so when I was developing it, I created a standalone application and simply passed the accountId that I was ...
msonza's user avatar
  • 127
6 votes
3 answers
3k views

Open a visualforce page from a managed package page: URL No Longer Exists

I am trying to open a normal visualforce page (that is NOT a part of the managed package) from a visualforce page that is IN managed package. This button I have on the visualforce page in manage ...
Sergej Utko's user avatar
6 votes
2 answers
2k views

Are service URLs in apex rest service case sensitive?

Rest API parameter are case-sensitive, Like User_Id and user_id are not interchangeable. But are services URLs also case-sensitive?
Vivek Malpani's user avatar
6 votes
1 answer
4k views

Prevention for Open Redirect Problem in Salesforce

I am facing some issue of "Open Redirect", is there any direct solution or document which may help me. pagereference p = new pagereference(returnUrl); return p; here Security issue is Open ...
Salesforce Steps's user avatar
6 votes
0 answers
656 views

Neither forceCommunity:routeChange or aura:locationChange cannot detect the URL change with history.replaceState

We have a use case where a lightning component built in LWC, should trigger a URL change. We're handling that with the history.replaceState method(note that we encountered the same problem with ...
Endrit Sino's user avatar
6 votes
0 answers
1k views

Site.getBaseUrl returns empty string in test method

I'm writing tests for the community site controller class and I've faced with some problem. When I invoke a controller method that includes Site.getBaseUrl() from test method I get an empty string. I ...
Artem Kuharev's user avatar
5 votes
3 answers
1k views

URL To A Record - Specify A Different Page Layout

I see some helpful articles that dance around this idea, but do not see reference on how to actually do it (if it is even possible). A typical Account URL in Salesforce. TYPICAL:   salesforce....
AMM's user avatar
  • 4,704
5 votes
2 answers
2k views

How to create and save a Task with URL button without navigating to Task screen

I have a url custom button on the Lead and Contact record. It creates a completed task on that record. However, I would like it so that when I click on the button, called "Log a Visit", the screen ...
user6966's user avatar
5 votes
2 answers
5k views

How to decode German characters(German umlauts) from the salesforce url?

I have an issue in Getting url parameters.Since i have german alphabets as values for parameters some of the characters are not decoded properly . my_vorname=Example_���my_name=Example_��my_strasse=...
Manoj Chandran's user avatar
5 votes
1 answer
2k views

Critical Update Bug? "Add a Namespace Prefix to Query Parameters and pageReference.state Properties"

This critical update is breaking several of my lightning components that use the URL to receive parameters. It is stripping out parameters, however none of my fields or parameters are part of a ...
Jake Hebert's user avatar
5 votes
1 answer
219 views

Proper/Safe Way to Link to Salesforce Object

What is the proper/safe way to get/generate links for Salesforce objects retrieved through the REST API? For instance, we have a tool living in another application that allows users to query for ...
user7266's user avatar
5 votes
1 answer
850 views

Issue with URL Parameters not decoding during Test Methods

Typing the URL into the browser with the following params: rec=atWAzwsBvm3hyWrApj4mBo0BsaasxAmfySPTrXZxNVbdPIMHXr1FfVg2Fhoa%2B7FY NOT During a test method executing the line: system.debug(...
Eric's user avatar
  • 54.2k
5 votes
2 answers
611 views

Is there an URL-pattern in LEX similar to /apex/NameOfVisualForcePage?

In Aloha the URL /apex/NameOfVisualForcePage lets Salesforce show the VF-Page named "NameOfVisualForcePage" Assume LEX = Lightning Experience and SPA = Single Page App I know LEX is SPA, but that ...
Uwe Heim's user avatar
  • 28.4k
5 votes
1 answer
782 views

URLENCODE only works with TEXT email templates? Can't get it to work with HTML templates

This seemed to me like this would be a fairly easy thing to do. Trying to be able to pass an email address as a URL parameter in an email template. I thought, great URLENCODE() will do that no ...
Chris Duncombe's user avatar
5 votes
3 answers
4k views

Navigating to a lightning app--what's the URL?

How would one navigate between lightning apps using the Salesforce1 javascript functions? I see actions for navigateToURL and navigateToSobject, etc, but not NavigateToLightningApp?
Shane McLaughlin's user avatar
5 votes
4 answers
1k views

How to access variables needed to create a URL for a New Relationship without hard coding it?

Created a page for account and one for a contact, with a "Create new Relationship" button. You select with you want to relate with a contact or an account, and based on that it creates a URL for the ...
user10009's user avatar
  • 171
4 votes
1 answer
1k views

security considerations while using url parameters in soql as bind variables

on most of our pages, we have some url parameters. we use these parameters as bind variables in various SOQL queries. is there a common pattern we can use which takes care of security issues.
Walker's user avatar
  • 2,365
4 votes
2 answers
2k views

What does the "one" in lightning url structure reference?

The URL pattern of lightning is https://instance.lightning.force.com/one/one.app. one.app is a lightning app. My question is about the one after the domain name: What does the one relate to in ...
dgk's user avatar
  • 165
4 votes
1 answer
12k 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"); ...
DarkSkull's user avatar
  • 1,729
4 votes
3 answers
302 views

Replace ID with API Name

I have a Home Custom Link Url like this: {!$Site.OriginalUrl}/00O5B000000OL93 that points to a report. I need to be able to change that hardcoded ID with something that won't break once I deploy this ...
The Ghost's user avatar
  • 245
4 votes
1 answer
802 views

Encoded number sign ("%23") in URL path

How would you add # in the URL via passing from PageReference? I have tried few different way but that does not work. public PageReference clickOnName() { PageReference newPage = Page....
Nick's user avatar
  • 7,022
4 votes
1 answer
680 views

Getting salesforce instance URL from Java

Is there a way for me to get salesforce instance URL from Java? I was looking for something similar to System.Url.getSalesforceBaseUrl() in Apex, but I couldn't find anything suitable in Metadata or ...
wintermute's user avatar
4 votes
1 answer
1k views

How to query for all tabs' urls?

I am trying to query for all tabs in an org that a user has access to. Also I need their urls so that I can navigate to them. I was thinking about [Select Name FROM ApexPage] but that returns a lot ...
Arthlete's user avatar
  • 4,907
4 votes
1 answer
5k views

How to get past the URL limit error of maximum 4096 characters?

I've a need to generate a PDF with dynamic content intercepted by end user in an editable input form. So, I tried reading everything on the form into a string and passed the string as a URL parameter ...
VarunC's user avatar
  • 5,950
4 votes
1 answer
178 views

Custom Button Issue

Is this correct way ? I am trying to "View all cases which are related to the Contact I have on my current Case" (Sibling Cases - Case records who shares same Contact as parent/lookup). Example : ...
Salesforce Steps's user avatar
4 votes
1 answer
514 views

How to avoid "https://na32.visual.force.com/apex/vfpage" being added to output site link

I'm trying to avoid https://na32.visual.force.com/apex/vfpage that is being added to the website that is already stored in field carrier_website__c. carrier_website__c has values like the following: ...
MnZ's user avatar
  • 3,170
4 votes
2 answers
3k views

What reasons would the id in URL be null?

My app is getting the object id from the URL query string with the following code: ApexPages.currentPage().getParameters().get('id') However, I have a customer who is reporting that this isn't ...
stmcallister's user avatar
4 votes
1 answer
146 views

How do I link created pages on site.com?

I have a Cases and a Documentation page which displays the case and article records (data repeaters). I have created two pages "case detail" and "article detail" which should display the case/article ...
Vimarsh Karbhari's user avatar
4 votes
2 answers
2k views

Is opening desktop app using custom url protocol (url scheme) safe and won't be blocked by Salesforce?

So I have requirement to open desktop app through salesforce. I created registry entry which is custom url protocol (details here) and simple component which is essentially a link. <aura:component ...
user1974566's user avatar
  • 2,315
4 votes
1 answer
3k views

Copy to the Clipboard in Lightning Component

I'm creating Lightning Component that displays Classic version of the Current URL record page with a button that onclick copy to the clipboard that URL. Just a simple functionality that saves time ...
Justyna Foster's user avatar
4 votes
3 answers
479 views

Access field Information in a URL button

Why does this not work within URL buttons: /XYZ/e?{!$ObjectType.myObject__c.fields.myField__c}=what+Ever I know XYZ can be replaced by {!$ObjectType.myObject__c} but why can I not go further? Edit:...
itsmebasti's user avatar
  • 6,437
4 votes
2 answers
374 views

Send Email URL button (List Button)

I created a URL button to send an email which works fine in partner portal but not in standard salesforce.I need to remove first extra slash(/) for standard salesforce.How to do this Update When I ...
sfdc's user avatar
  • 13.7k
4 votes
1 answer
90 views

URL formatting is broken in Marketing Cloud Data Extensions

We have noticed that since the latest release (08/10/2023) that Marketing Cloud has reformatted all URLs present in data extensions. Formerly, they worked - we often use links in data extensions to ...
TCassa's user avatar
  • 878
4 votes
2 answers
334 views

Uploading file to Facebook from Salesforce

I'm trying to upload an image file to Facebook from Salesforce and current this is my codes and it is not working can anyone help me fix it? Please Note that my Image file is inside the Accounts ...
Luke Au's user avatar
  • 179
4 votes
2 answers
2k views

Regular Expression in Apex to find entire link in string

I have a regular expression in apex that is only grabbing part of the link I need in a string. I need it to grab the entire link. Here is what im working with: String myvar = 'this is an example ...
Niche's user avatar
  • 41
4 votes
1 answer
9k views

How to pass parameter from custom button & open a vf page?

I want to pass the Quote Id to the controller on click of a custom button & open the vf page called Select Product. Currently i'm using this code:- apex/SelectProduct?id={!Quote.Id} I have kept ...
Ashish's user avatar
  • 53
4 votes
1 answer
2k views

How to pass the salesforce Ids in URL which are case sensitive?

I am facing issues in passing the values to custom fields which are same as shown below. 00Ni000000CPDRf 00Ni000000CPDRF I am passing them as shown below: PageRef.getParameters().put(System.Label....
Keepcalmncode's user avatar
4 votes
0 answers
765 views

Content Builder images

I now have another issue with the same set of images that I had uploaded initially for this template. I deleted them all because I changed my Setup--> Feature Settings --> Content Builder Settings -->...
Girish's user avatar
  • 137
4 votes
1 answer
1k views

Non-http url link from HYPERLINK('notes://example.com', 'View') is not opening

We have a text formula field with following code: HYPERLINK("notes://example.com", "View") When using Lightning Experience, thin link is not redirecting to address. In Classic Experience new tab is ...
Martin.Kona's user avatar
4 votes
0 answers
286 views

HTTPS displays "site under construction" - Manually remove S and it works yet URL is still HTTPs

Can anyone confirm that what I am seeing is "expected" or is there a bug... Scenario: Site configured in a sandbox instance requiring HTTPS Code set page reference to https://sitename Sites shows ...
Eric's user avatar
  • 54.2k

1
2 3 4 5
8