Questions tagged [url]

referring to the web path url or uniform resource locator

Filter by
Sorted by
Tagged with
15
votes
4answers
37k 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 ...
12
votes
1answer
2k 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 ...
12
votes
3answers
8k 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 ...
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 ...
8
votes
3answers
1k 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 ...
7
votes
1answer
4k 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 ...
7
votes
2answers
2k 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 ...
6
votes
2answers
591 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?
6
votes
1answer
2k 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 ...
5
votes
1answer
5k 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 ...
5
votes
3answers
580 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....
5
votes
3answers
2k 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 ...
5
votes
2answers
3k 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=...
5
votes
1answer
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 ...
5
votes
1answer
156 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 ...
5
votes
1answer
577 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(...
5
votes
4answers
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 ...
5
votes
2answers
431 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 ...
5
votes
0answers
620 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 ...
5
votes
2answers
2k 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?
4
votes
1answer
771 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.
4
votes
2answers
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 ...
4
votes
3answers
177 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 ...
4
votes
1answer
554 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....
4
votes
1answer
456 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 ...
4
votes
1answer
959 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 ...
4
votes
1answer
167 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 : ...
4
votes
1answer
486 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: ...
4
votes
2answers
1k 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 ...
4
votes
1answer
135 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 ...
4
votes
2answers
187 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 ...
4
votes
1answer
1k 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 ...
4
votes
3answers
258 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:...
4
votes
2answers
331 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 ...
4
votes
2answers
211 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 ...
4
votes
1answer
289 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 ...
4
votes
2answers
781 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 ...
4
votes
1answer
7k 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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
1k 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....
4
votes
0answers
256 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 ...
3
votes
2answers
219 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 ...
3
votes
1answer
9k 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
3answers
6k views

VF/Apex to Open in New Window?

I've discovered that adding target="_blank" to some hyperlink code opens the window in a new tab. Is there a way we can get it to open a whole new window? Here is an example of what we have right now ...
3
votes
1answer
165 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 ...
3
votes
1answer
2k views

How to create a custom tab that redirects to a specific URL

I would like to create a tab in Salesforce called 'Activities', and when clicked, it redirects to https://na1.salesforce.com/007, the Activity List Page in Salesforce. The web tab is not an option, ...
3
votes
2answers
5k views

How to pass multiple value to url parameter

I am creating a custom button on a custom object A. The custom object A has multiple accounts related to it. Custom object A has a lookup relation to Account. In the button logic I am using Button or ...
3
votes
4answers
7k views

Get url into lightning component - Redirection to an object record

I have a lightning component in which I wnat to make a link that redirect to an object record : <aura:iteration var="a" items="{!v.actualites}"> <a href="{! a.Id}" data-id="{!a.Id}" ...
3
votes
1answer
1k views

Referencing Static Resources URL in AngularJS App

I need to use some icons in static resources in an ng-grid table. I wonder what is the best way to make use of the platform's url resolving. If I put the code src="{!URLFOR($Resource. in Javasript ...
3
votes
1answer
241 views

Can a Web Tab's url be get and set from Apex or the REST Api?

I would like to modify the url of my Web Tab for each SF organization that my managed package is installed on. Is there a way to get and set the url of a Web Tab from Apex or the REST Api? Is there a ...