Loading

'Bad_Start_Url startURL' Error When Accessing Authentication Provider URL

Udgivelsesdato: Apr 5, 2023
Beskrivelse

When accessing an Authentication Provider URL that has a startURL parameter, you may get the following error:

Bad_Start_Url startURL was not a relative path or contained invalid characters
Løsning

This can happen for multiple reasons:
  • The URL needs to be a relative URL. In other words, it needs to start with a forward slash (/)
  • The URL contains invalid characters, such as extra spaces. In some scenarios, even if invalid characters are encoded, you might see this error message.

Assume the following URL:

https://login.salesforce.com/services/auth/sso/00D/YourAuthProvider?startURL=/directory/another-directory/file?parameter=my%20parameter

In this scenario, startURL is a parameter of the main URL, but startURL also has its own set of parameters, one of which has a white space. For this to work, the start URL must be encoded one more time (double encoding).

The final URL would look like this:

https://login.salesforce.com/services/auth/sso/00D/YourAuthProvider?startURL=%2Fdirectory%2Fanother-directory%2Ffile%3Fparameter%3Dmy%2520parameter
Vidensartikelnummer

000387844

 
Indlæser
Salesforce Help | Article