You need to sign in to do that
Don't have an account?
How to construct an url with retUrl?
I'm trying to display a value (pulled from a salesforce record by apex) on a VF page, and have it linked in the browser to a the standard salesforce edit page for the value.
The following does not work; I get to the edit page ok, but when I click save or cancel, I end up at the tab home page for the custom object. But no error.
How are urls with retUrl constructed?
// In the controller extension:
public String getexpenseRatioLink() { return StatisticalDatum.page( dataMap, 'expense ratio' ).getUrl() + '/e' + '?retUrl=' + ApexPages.currentPage().getUrl(); }
// In the VF page:
//
// <a href="{!expenseRatioLink}">{!expenseRatio}</a>
All Answers
Hi,
You could try with adding only the id of the record/page after ?retUrl=