function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JDevJDev 

Inconsistent page navigation across salesforce environments

I have a simple Visualforce page that works in production and developer sandbox but fails to return the correct URL in a full Sandbox when code was deployed there today.

 

Same Apex controller code and user profile used in all environments: Production is na2 Sandbox that works is cs2 Sandbox that fails is tapp0

 

Failure symptom is the URL returned without the preceding Org prefix

Working return url on cancel is https://cs2.salesforce.com//003R000000Du5go

Failed URL on cancel is: https://003t000000ihh83/

 

Code in controller is

 

private PageReference retURL = new PageReference('/'+ApexPages.currentPage().getParameters().get('retURL')); ..... public PageReference cancel() { retURL.setRedirect(true); return retURL; }

 

Is anyone else seeing this type of behavior?

Is there a better way of handling retURL (I'm passing the 15 char id as a parameter from a button?)

Message Edited by JDev on 06-24-2009 04:02 PM
JDevJDev

Able to resolve by changing name of parameter to ret vs retURL - sandbox tapp0 now works OK

see http://community.salesforce.com/sforce/board/message?message.uid=133335