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

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

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

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