Questions tagged [redirect]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
4k views

urlEvent is undefined

We have below code being called from Cancel button on a Lightning component. We have used this lightning component on VF page. navHome : function (component, event, helper) { var urlEvent = $A....
2
votes
1answer
683 views

SObject row was retrieved via SOQL without querying the requested field: Opportunity.OwnerId

I have the following code: public with sharing class ExportCheckPageController { public boolean checkYes { get{if(checkYes == null) checkYes = false; return checkYes;} set;} ...
2
votes
1answer
217 views

Overriding the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider

Background: I have created a custom Auth. Provider in Salesforce to reach out to an authorization server that isn't on the default list of Provider Types. I used https://developer.salesforce.com/docs/...
0
votes
2answers
11k views

Redirect page to record

So this is my controller which create new event and save event. in this i have hardcoded page redirect link '/a3I/o'. i dnt want this to hardcoded. I want to do something like it will redirect to ...
4
votes
3answers
52k views

VF controller redirect to another page

I have a Apex Controller for a VF page. I want to redirect my page to another one, only if I cannot get a specific parameter from the URL. current page: /apex/demo?param=123 -> stay on this page. ...
0
votes
1answer
984 views

RedirectTo, AmpScript and website-generated parameters

I have a URL that is created with some Ampscript that needs to have click-tracking. However, there are parameters that our 3rd party's website adds and I believe that is breaking the link. Here's ...
5
votes
2answers
29k views

redirect to a page from apex in the constructor

I have a method in the page constructor that checks if a user has access to the page. If not, I want to redirect the user to another "Access Denied" page. I know I can use Pagereferences as part of a ...
5
votes
1answer
760 views

Sending a redirect

I have a hyperlink in an email which will open an opportunity using the standard opportunity page. Before the opportunity page is open I want to carry out some business logic. I only want this ...
4
votes
3answers
3k views

Showing visualforce pages to Communities users, but standard Salesforce pages to all other users, without writing a dozen controller extensions!

I'm building a Communities site with several custom objects that Communities users should access through Visualforce pages. All other Salesforce users should access these objects through the standard ...
4
votes
2answers
2k views

VisualForce apex:relatedlist - button redirection

I am having a little problem with visualforce and displaying a related list. The task is to display account related contacts and opportunities as a related list on a custom object. Account is a look-...
3
votes
1answer
4k views

The CORRECT way to redirect to a ListView from StandardSetController?

From a List Button or Visualforce Page, I wanna redirect to a ListView after. Common, right? Life is great when we're dealing with Standard Controller: using view() method. What is the correct, ...
0
votes
2answers
3k views

Custom Button: redirecting to standard page in edit mode

What I'm trying do is, when the user clicks on the Custom Button I want that to redirect to a Standard page in edit mode Here is what I have done so far: In the standard page layout: Label `Clone ...
3
votes
0answers
591 views

Lightning experience embedded page redirect

I've got a VF page embedded into page layout. It redirects user to other VF pages (depending on user action) inside an iframe on page layout. In LE such PageReference redirects sort 'step out' from ...
1
vote
5answers
295 views

SSJS Platform.Response.Redirect() throws unknown error: Error in Application

I am trying to understand why the following is happening: <script runat="server"> try{ Platform.Response.Redirect('http://www.google.com'); } catch(e) { ...
0
votes
1answer
320 views

Redirect to detail Page not working

Please find my below code where Redirecting to Detail Page is not working based on boolean value. Can someone please let me know the root cause? Apex Controller: public class CallReplica_controller {...