You need to sign in to do that
Don't have an account?
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?)
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