I am currently able to login inside salesforce using just a session id https://eu5.salesforce.com/secur/frontdoor.jsp?sid=sessionId

I now want to be able to redirect to a record page by passing 1 additional parameters &retUrl=/0032400000GRVvYAAX

Can anyone help with this?

  • What's not working?
    – superfell
    Commented Feb 12, 2017 at 19:05

1 Answer 1


It works pretty much as you've suggested. Send the users browser to:


Remember to URL encode the forward slash in the retURL parameter.

As Rahul Sharma commented, check the casing of retURL as well. The casing needs to match exactly.

  • 1
    It even works with &retURL=/0032400000GRVvYAAX, could be due to fact that retURL is case sensitive!
    – Raul
    Commented Feb 12, 2017 at 19:11
  • 1
    @RahulSharma The casing on the ID given does appear to be correct for the AAX suffix in this case. Commented Feb 12, 2017 at 19:13
  • 1
    Sorry, I meant parameter name retURL is case-sensitive not the Id or value. So, encoding is good to have but is not a problem in this example.
    – Raul
    Commented Feb 12, 2017 at 19:15
  • 1
    @RahulSharma Ah yes, good point! Commented Feb 12, 2017 at 19:16
  • 1
    Also, outlined in KA 000193348.
    – sfdcfox
    Commented Feb 13, 2017 at 3:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .