Skip to main content
10 events
when toggle format what by license comment
Apr 8, 2022 at 10:51 comment added Robert Sösemann I now know that my root problem is something else. The fields are empty and the URL I construct is wrong salesforce.stackexchange.com/q/373464/256
Aug 31, 2019 at 17:57 comment added identigral startURL works: salesforce.stackexchange.com/questions/275429
Jul 10, 2019 at 21:03 comment added identigral @RobertSösemann startURL is the only possibility I know about. If you're using a URI (a relative URL..), the docs say it should work. It's probably doing a check on the URI to make sure you're not redirecting them to a resource where access wasn't authorized in this sequence. Perhaps that's the issue, e.g. if you're authorizing my.sf.com and /lightning resides under a different subdomain. Don't know much more than this educated guess, I am afraid. Try a simpler startURL value to test this.
Jul 10, 2019 at 20:43 comment added Robert Sösemann But I get a BAD_START_URL when I use something else than /Id of AuthProvider. I’d like to use/lightning/n/myVfPage
Jul 10, 2019 at 19:13 comment added identigral The latter: getParameters().put('startURL', ...)
Jul 10, 2019 at 18:55 comment added Robert Sösemann And how would I add it. Concat or adding pageref param?
Jul 10, 2019 at 18:31 comment added identigral @RobertSösemann According to the docs, startURL is officially supported for external auth providers...although I am curious if oAuth flow would respect it as it's really designed for SSO.
Jul 10, 2019 at 18:19 vote accept Robert Sösemann
Sep 21, 2020 at 12:17
Jul 10, 2019 at 18:11 comment added Robert Sösemann This rocks even more! What about the redirect Url after the flow? Can I use something like a Visualforce page in Lightning using startUrl=/lightning/n/MyPage?
Jul 10, 2019 at 17:39 history answered identigral CC BY-SA 4.0