Bad_Start_Url error is returned when auth provider URL receives a relative path that contains white spaces or invalid characters
Last updated 10 days ago ·Reference W-3315426 ·Reported By 11 users
When the URL decoded value of startURL contains a relative path with white spaces or invalid characters (e.g. éá) before the first existing question mark, "Bad_Start_Url, startURL was not a relative path or contained invalid characters" is thrown when redirected to the auth provider servlet.
1) Create a Google auth provider. Any auth provider will do.
2) Create a Community using the Customer Service (Napili) template, and configure the created auth provider at Community Management | Administration | Login & Registration.
3) Navigate to Community Builder and remove the "Featured Topics & Feeds" component from the Home page. This is to allow you to navigate to the community home page as a guest user.
4) Publish the community, and wait for an email to confirm that the community has been published.
5) Navigate to the community as a guest user (e.g. use an incognito tab to open the community login URL).
6) Navigate to a page where white spaces or invalid characters are going to be added to the page URL. For example:
6.1) Search for a piece of text with white spaces in the expression. e.g.: "a b". The search results page will be displayed and the URL will contain the text you just searched; OR
6.2) Click on any question that contains invalid characters. e.g.: "éá". The title of the question will be added to the URL.
7) Click Login and you'll be redirected to
Notice startURL is the result of URL encoding this relative URL:
8) Click Google to use this auth provider. This will throw the Bad_Start_Url error.
Log into the auth provider before navigating to a page with white spaces or invalid characters in its URL.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.