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
Jeff SusichJeff Susich 

retURL Parameters

I have several custom buttons to 'decode' and understand what they do. The Return URL portion is the part I don't know. 

Example: retURL=%2Fa0F%2Fo 

Where can I find the reference that tells me how to understand what this return URL command is doing?
Alexander TsitsuraAlexander Tsitsura
Hi Jeff,

if you decode this example you view "/a0F/o"
You can put here any link, but you need encode link before
http://meyerweb.com/eric/tools/dencoder/

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Alex

 
Jeff SusichJeff Susich
Thanks, but I want to have some salesforce reference that tells me what all the "%", "2F" and other elements mean to salesforce. 
Alexander TsitsuraAlexander Tsitsura
"%", "2F" it's only encoded symbols. If you encode "%2Fa0F%2Fo", result is "/a0F/o", if you decode "/a0F/o" you receive "%2Fa0F%2Fo".

If you want set returnUrl that redirected to account list view, you can encoded '/001/o', where 001 - first 3 symbols of id, result is "%2F001%2Fo".
Alexander TsitsuraAlexander Tsitsura
if you want open object list view, use "/<first 3 symbols of id>/o"
if you want open "new object" layout use "/<first 3 symbols of id>/e"
if you want open another vf page use "/apex/PageName"
if you want open another site use "https://www.google.com"