I have a custom button on account that's content source is URL. (target page uses opportunity standard controller)
In the url I specify apex page and a parameter ...?retUrl={!Account.id}
Now in the controller getParameters().get('retUrl’) returns the id prepended with host's address.
https://xxxx.visual.force.com/001xxxxxxxxx
Is this a typical behaviour with URL buttons? Typically when I append parameters in apex I get only the value I provided. Is what I observed documented anywhere? I would gladly read more on the subject.
retUrl
? I suspect it will include the host details and that Salesforce has replaced your value with its own value.