Lightning Experience doesn't support the use of static URLs to link to Salesforce
resources. Fortunately, there's a much better alternative that future proofs your URLs. URLFOR is
a function that calculates a URL based on inputs, rather than relying on something static that
can't change. Use the URLFOR function with the appropriate action instead of direct
URLs.
Required Editions
Available in: Group, Professional, Enterprise,
Performance, Unlimited, and Developer Editions
User Permissions
Needed
To create, edit, or delete Visualforce pages:
Customize Application
Because static URLs can be applied in many ways, it’s not possible to cover all
possibilities. Let’s look at a case where a static URL is used to link to the edit page for
an account. Then you can use this example, including the code samples, as a guide for
addressing other static URLs in your pages.
Locate href and .Id} in the Visualforce code.
From Setup, enter Visualforce in the Quick
Find box, then select Visualforce Pages.
Click Edit next to the Visualforce
page.
Search the Visualforce markup for each of the following:
href and .Id}.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.