7
votes
Accepted
Overriding or Creating Custom Pages for record detail of specific objects
Yes, it is possible to modify just the record detail page for a specific custom object, but you'll need to create that page first.
When you are in Community Builder, go to Page Manager > + > ...
5
votes
urlEvent is undefined
Just a different way to slice the pie I guess but this puts the pieces where they belong IMHO and leave lightning in lightning and classic in classic
Lightning App
<aura:application access="...
5
votes
Accepted
SSJS Platform.Response.Redirect() throws unknown error: Error in Application
So, this is a known issue in .Net (which is what is used for rendering SFMC SSJS). Using Redirect will throw a Thread Abort Exception. Which I believe is what @SamWhitmore was stating in the official ...
5
votes
Accepted
REST Request is rejected since Winter 23 hit the preview enabled sandbox
Due to enhanced domains been enforced in the Winter 23 release, the hostnames have been updated
From
orgName--sandboxName.my.salesforce.com
To
orgName--sandboxName.sandbox.my.salesforce.com
I assume ...
4
votes
Accepted
Redirect to previous URL - Lightning Component (Communities)
Ok so i figured it out I needed to parse the function like so:
redirect: function (){
var url = window.location.href;
var value = url.substr(0,url.lastIndexOf('/') + 1);
...
4
votes
Accepted
Redirect from visualforce to another without using apex controller
Yes, if you use an action that resolves to a URL, you can redirect. Here's an example:
<apex:page>
<apex:form>
<apex:commandButton value="Go to page 2" action="{!URLFOR($Page....
4
votes
Accepted
What callback URL to use to redirect back to VF page from External system
It depends on the OAuth2 implementation that you're authenticating against, but generically speaking, login.salesforce.com should work for production instances, test.salesforce.com should work for ...
4
votes
Accepted
Redirect to the lightning new record creation popup
If i understood correctly, you want to open this popup in a custom component or a button/url. If so, you can try using force:createRecord.
You can check this link for more:
force:createRecord or ...
4
votes
Accepted
urlEvent is undefined
As mentioned in force:navigateToURL, this event is only supported in LEX and SF1, and not other technologies such as Lightning Out. In that case, just use window.location:
navHome : function (...
4
votes
Accepted
URL link to SF record from external system - LIGHTNING
In lightning you can use "lightning:isUrlAddressable" interface with "force:navigateToURL" to redirect to account page on init with 3 steps.
You pass uuid in url
You query and find account id on ...
4
votes
LWC Quick Action - Can we determine which Action button invoked the LWC component?
This worked for me to grab the API name of the quick action. It uses the importation of CurrentPageReference from lightning/navigation.
import { LightningElement, wire } from "lwc";
import { ...
3
votes
Redirect to the lightning new record creation popup
There is no such URL that you can use the method suggested by @brahmaji you can create a component and in the component's init method you can write the code to open the popup to create the record.
({
...
3
votes
Accepted
Strange Related List Error on Visualforce page
Figured it out. Salesforce doesn't use list="NotesAndAttachments" any longer. Now it's called CombinedAttachments.
<apex:relatedList subject="{!Inspection__c}" list="CombinedAttachments" />
...
3
votes
Accepted
Prepare LWC after page has redirected and came back
In case someone experiences this same predicament, what I ended up doing is having a wired function to the current page reference so when it changes I can re-init the component
import { ...
3
votes
Accepted
Redirect to VF Page not firing
You can't redirect from a trigger. You would want to put a VF page or Lightning Component directly on the Lead record page in order to redirect to an edit page (or even your VF page). There's a few ...
3
votes
Accepted
Lightning Component redirecting to record it is creating
The recordId you are using should come from lightning context if record already exists. But here you are creating new record - so you need to get the new record Id in onsuccess handler method.
Also, ...
3
votes
V49. Lightning redirect to specific tab
According to the documentation the attribute "slideDevName" should be "detail" which is also the default value and not "detailTab" like this
navEvt.setParams({
"recordId": "00QB0000000ybNX",
...
3
votes
Accepted
Redirect to Cloudpage using Page ID on a Lookup script
you are inside an AMPScript definition block (opened by %%[ and closed by ]%%) so you do not need to (in fact, shouldn't) add the inline ampscript markings (%%= and =%%) for functions inside it.
This ...
2
votes
Redirect to new lightning page be clicking button. Setting parameters to component in new page
Ideally from winter 17 release you should be able to use the new event force:navigateToComponent to achieve the Navigation with passing Ids or other attributes between two components .
For now you ...
2
votes
Strange Related List Error on Visualforce page
This change happened quite a while ago now. You can see it announced in the Winter '14 Release Notes.
Changed Relationship Name for Notes and Attachments Related List
The relationship name for ...
2
votes
How to add error message to opportunity record page
You cannot do both at the same time, either you want to redirect or you want to show an error.
I would suggest you:
Create a variable to store the message you want to show
On the VF page rerender ...
2
votes
Accepted
Is it possible to stop or redirect auto reply messages when sending emails out with Exact Target?
I would setup Reply Mail Management to delete auto-replies and out-of-office replies. Refer to the RMM documentation which explains:
When you configure RMM, you indicate how you want the reply rules ...
2
votes
Custom Domain Redirect to a Path/Page in a Community
I don't think it's possible what you want using custom urls
But, you can set up page variations of your home or landing page so that users matching a criteria can see certain home page.
you can read ...
2
votes
Accepted
Create hyperlink in visualforce page that redirects to corresponding create contact page for account
Thanks for the help. I managed to do it on my own.
I first created a formula field on Account that returns the url of contact based on Account ID:
HYPERLINK("https://csxx.salesforce.com/003/e?...
2
votes
Salesforce Customer Community and EC (error code) 301 Redirect
To answer question number 2, for lightning communities (Napili Template), access Administration under Workspaces, and you can access sitestudio by going to Pages > Sitestudio.com:
and then Site ...
2
votes
Accepted
RedirectTo, AmpScript and website-generated parameters
If the &%%_AdditionalEmailAttributeX%% breaks your links, you could raise a support case via the Help & Training Portal to enable all available additional email attributes. Then you can set ...
2
votes
Need to reload the same page so that the apex gets called again
You should not have script-tags inside your apex:form-tags, I believe. Also, you should probably be using an event listener instead of window.onload.
Try the following:
<script type="text/...
2
votes
Test Coverage With Flow and FinishLocation
Have you tried setting the variable in your test class to any valid value? You can get a valid value using System.debug in a non-text context, then either using a json string to create an instance of ...
2
votes
Accepted
Send data from apex page to another apex page using javascript remoting
if you are looking to change pages here - would be better to add it to page parameters of the next page and then redirect to the new page - adding the previous page as your return url.
To me, it ...
2
votes
Accepted
How to redirect to external url from apex from callout response
Well, first of all you have to ditch the future. :) Considering its a VF Page.
Split the operation in 2 chunks that can happen in independently.
1) DML
2) Callout without future.
Now define an ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
redirect × 234visualforce × 92
apex × 55
pagereference × 24
community × 20
lightning × 19
marketing-cloud × 17
lightning-aura-components × 17
url × 17
javascript × 11
visual-workflow × 11
controller × 11
lightning-web-components × 10
ampscript × 10
custom-button × 9
force.com-sites × 7
urlhacking × 7
lightning-experience × 6
salesforce1-app × 6
record-type × 6
cloudpage × 6
iframe × 6
urlfor × 6
navigation × 5
button-overrides × 5