Questions tagged [redirect]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
764 views

How to Navigate to Contact Creation Page

My use case is that I have overridden the 'View' button with a Visualforce page which immediately redirects to either a Visualforce page or the standard detail page based on the RecordType. I would ...
2
votes
1answer
543 views

Actionfunction - rerender - redirect - ssl

I have a problem in a Visualforce page for a site page... The process involve: Html + css + jquery ActionFunction => with rerender, with parameters Redirect from a https tio a http jquery actually ...
0
votes
1answer
1k views

HTTP Post with redirect

So, I've got a HTTP Post that I am doing with two parameters. I'm not receiving any sort of session ID back to help me with the URL redirect. Apparently it is more of a 'post to this' and you're in. ...
0
votes
1answer
432 views

Help with test classes for VisualforcePage Redirect controller

I'm very new with apex, and having a lot of trouble getting code coverage for my tests. Here's my Visualforce page: <apex:page standardController="Task" > <apex:enhancedlist type="Activity" ...
2
votes
1answer
684 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;} ...
0
votes
1answer
549 views

Redirect VF Page after sendEmail

I have a VF page with a submit button, when the user clicks on the submit button it sends an email. I need the page to redirect to a thank you page after they hit submit. I am getting this error: ...
1
vote
0answers
142 views

APEX Redirect as intended

I have the following issue, I had a redirect that was working perfectly, see the below code: PageReference pr; if(opp.RecordTypeId == sgiRT || opp.RecordTypeId == apacRT){ if(!opp....
1
vote
1answer
2k views

Saving from Visualforce Edit page not returning to Edited Record

I have a tabbed Opportunity page using the view overrride. So I am using one Visualforce page "OnBoardTabsOpp" with tabs and each tab is using the page include method. <apex:tab label="Sales" ...
0
votes
1answer
234 views

VF page not closing upon 'save'

I'm having an issue with this visualforce page. I'm able to save the record with my logic, but it won't listen to redirect to the 'saveRecord' method in the class. When I select a record, it does ...
1
vote
1answer
174 views

Redirect to page where the contact is stored after save button is clicked

****VisualForce Page:**** <apex:page standardController="contact" extensions="contact1"> <apex:form id="frm"> <apex:pageBlock > <style> body ....
0
votes
1answer
1k views

Save button didn't redirect back in Lightning

I am working in lightning. As Contact Role is not supported on Account in lightning. So am using visualforce page for account view and add Contact role related list as tab on Account. But when i ...
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 ...
1
vote
0answers
60 views

How to customize or prevent community user from seeing default 'URL No Longer Exists' page

I am developing community. We have customized all VF pages with html/css. I have custom login page, and to prevent user from seeing default login page, I have created URL redirect from '/login' to '/...
0
votes
1answer
561 views

Help with Record Type Redirect Autopopupate fields

I'm new to apex and I need help with issue below. I have a "New Case" custom button on Opportunity record which allows me to create Case. When clicked on "New Case" button, I can select record type ...
0
votes
1answer
27 views

Including sensitive values in PageReference when redirecting

Controller for PageA processes some data, then redirects to PageB along with some sensitive values. How can I safely pass these values to controller for PageB? i.e. cannot put them in PageReference....
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
1answer
30 views

Can I get a New Event button in Open Activities to return to the Event instead of the account?

I am trying to get a New Event Button in Open Activities on the Account to return to the Event in question after save. I have created a "New Meeting Event" List Button which inserts a specific Record ...
0
votes
0answers
409 views

Use onComplete and page redirection of action function

I have a simple question. Can I use action function to redirect to a new page using controller code and also at the same time use onComplete of the action function so that onComplete gets called ...
-1
votes
1answer
1k views

Visualforce Page redirect not working in apex class constructor

In visualforce page URL, i have one parameter 'id'. In apex controller class, i have written code in constructor like below: public myconstructor(){ String ObjId = ApexPages.currentPage()....
2
votes
1answer
529 views

How to get a refresh token or redirect_uri for Salesforce API with python?

I'd like to use this PYTHON API Client Library to access the Chatter API client_id = "YOUR_CHATTER_CLIENT_ID" client_secret = "YOUR_CHATTER_CLIENT_SECRET" auth = chatter.ChatterAuth(client_id, ...
3
votes
0answers
2k views

Lightning Experience gets 'stripped' when redirecting from Visualforce page

I`m struggling to fix an issue which arise with the new Salesforce Lightning Experience. So, I have a Visualforce page which is assigned to the Edit functionality of Accounts. In Salesforce Classic ...
1
vote
0answers
93 views

Doing 301 redirect not just for a single page but for the whole site?

I would like to redirect my whole site to an homepage of another site. I know I could do this in javascript but I prefer to have the 301 Redirect for SEO reasons. How could I do this while mantaining ...
0
votes
1answer
2k views

Problem with redirect with PageReference in iframe

I open a visualforce page in an iframe witch contain two commandButton. The buttons call functions on the class. At the end of my functions, i made a redirection with PageReference but the ...
1
vote
0answers
439 views

How can i get redirect same page without refresh?

I have created visual force pages in added in related object page layout. Once I select the record and save it not redirect the page. Why this happening? How can I resolve this issue. Please can any ...
1
vote
0answers
1k views

Why does setRedirect(false) on a public page(Site) is not working?

public EventsController(){ eventId = ApexPages.currentPage().getParameters().get('id'); } I got this first vf page button: <apex:commandButton action="{!BookerInformation}" value="...
1
vote
0answers
436 views

sendRedirect is redirecting only Home page component but not Home page wholely

i was developing a home page component (for searching records) which will take any id of a particular object and redirects to the object if the id matches to any of the record id.But this is working ...
7
votes
2answers
774 views

Visualforce page: access from a guest

In my org I have a public Site SSLazio (i.e., it is accessible from a guest not logged in Salesforce). The Visualforce page JohnPage is in the Site Visualforce Pages list of the SSLazio Site. Is ...
1
vote
1answer
220 views

Issue with inline VF page from Managed package on org where SSO is setup

I am facing weird problem on one of customers org. The inline VF page is not working on one specific org when we use SSO to login on that org. If we use normal login then it works fine. When we login ...
0
votes
1answer
190 views

Is it possible to edit read only page(same page)?

I have created visual force page it's read only page. when I click the button called modify(find below images) it's redirect to same page with editable. Is it possible to create? can you please tell ...
0
votes
1answer
323 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 {...
3
votes
1answer
3k views

Visualforce onclick javascript redirect doesn't work

I'm struggling with javascript redirect. I've got two buttons (google button is there just for a test): <apex:commandButton onclick="toGoogle();" value="Google"/> <apex:commandButton onclick=...
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 ...
3
votes
2answers
193 views

Visualforce Page Controller Parameter Unavailable to User

I have a simple redirect link that goes through a visual force page that works perfectly fine except for non-administrative users the redirect url does not include the parameter it needs to build the ...
2
votes
2answers
265 views

Navigate site.com studio page to a force.com page

I have a Site.com page and a Visualforce page There is a link in the Site page which needs to redirect to the Visualforce and vice-versa. Is this possible? How?
1
vote
0answers
664 views

Correct redirect_uri for Google Sheet (not web app)?

We have several Google Sheets that interact with Salesforce, all now broken with ouath1 deprecation. I've found lots of examples of oauth2 for web apps, but I can't make it work with a Google sheet. I ...
0
votes
1answer
213 views

redirect select record error to current page

I have a page that filter records based on a field, when a user search for a record that do not exist the following error page is displayed I want to display a customized error like "record does not ...
0
votes
1answer
277 views

Navigate to chatter file in salesforce1 and salesforce

I've been trying to navigate to chatter file both in desktop browser and in salesforce1 from a publisher action but I can't seem to get it working. I have a VF Page like <script type="text/...
1
vote
0answers
752 views

Page Redirect in Community Pages

I have enabled Chatter Answers to override the change password page. This is working fine, on click of the link from email it is landing on the change password page. In the controller of change ...
0
votes
1answer
1k views

Redirect to object creation from visualforce page

Is it possible to redirect the user to a custom object creation page from a visualforce page? If so, how can I get the URL of this creation page? And what would I need to do in the code to pass an ...
0
votes
1answer
2k views

Session Timeout Not Redirecting to Login Page on Expiration

I am having some issues with Session Timeouts not redirecting Community users to the login page as defined in the session setting. According to Salesforce definition of the setting, it is to expire ...
6
votes
2answers
5k views

Can you redirect to a Custom Object List Page from a Controller?

I want to redirect from a visualforce page to a custom obect's list page. I need to run a method in the controller as th action for the button, so I would like to redirect from the controller. I ...
2
votes
2answers
851 views

Redirect New Contact creation to VF page based on Record Type

I have created a Contact Wizard to walk users through certain steps when creating a new contact. The issue I have now is that I need it to redirect to the first VF page in this wizard ONLY if they ...
2
votes
1answer
4k views

Visualforce Button Redirect with URL reference to related Account

I am working on a small wizard for adding Contacts of a certain type. The first page redirect is saving and redirecting with the ContactID referenced in the URL like it is supposed to, but the second ...
0
votes
1answer
72 views

Page redirect function

Looking to infleunce a direct page route after one submits Donation or Event form within Linvio. We wish to redirect to a page not housed within Salesforce. Any thoughts?
1
vote
3answers
4k views

VF Action to Redirect to a Standard Page with Custom Error Message

I have a VF page that produces an Excel file based upon certain products underneath an Opportunity. How would I go about using a VF action to redirect back to the Opportunity standard screen if no ...
1
vote
1answer
205 views

Unable to redirect to new VF page

I'm trying to capture orderid from URL and then redirect user to a different visualforce page OrderTrackingClass after finding the orderId Following is what I tried... public with sharing class ...
0
votes
1answer
412 views

PageReference not always redirecting

I have a commandLink in a table that calls a method in the apex controller when clicked. I want it to open the pageReference in a new tab. The pageReference is meant to open up a Competition-Record ...
1
vote
1answer
2k views

Visualforce: calling method as an action inside conditional statement

This is working code, saying that Telemarketing users are routed to a standard New Event page, while other users are redirected to MyPage: action="{!if($Profile.Name !='Telemarketing', urlFor($Page....
3
votes
1answer
1k views

Visualforce Page and Visual Flow - Back and forth redirection - Solution?

I have a visual flow that is started on a click of Custom button. This flow is embedded in a visualforce page (standard way of using flows). Now, in one of the steps in the flow, I want to redirect ...
1
vote
1answer
117 views

How do I create a button that modifies a field, saves the record, and returns to the detail page?

I need to add two buttons to the Opportunity page, one labelled "Close Opportunity (Won)" and "Close Opportunity (Lost)". Previously I know this was available by URL hacking the opportunity page, but ...