title: Using Firebase signInWithRedirect can I configure it to redirect me back to a specific page
body: <p>When I call</p>
  
  <p><code>this.afAuth.auth.signInWithRedirect(provider)
        .then((credential) =&gt; {
        })
        .catch((error) =&gt; this.handleError(error));</code></p>
  
  <p>The redirect works correctly and is handled by firebase returning me to the login page. However it takes a while for the promise to complete</p>
  
  <p><code>this.afAuth.auth.getRedirectResult().then((result) =&gt; {
   //Login or move to request additional info
  });</code></p>
  
  <p>As the page has completely refreshed, I have no info that lets me know the page should not be showing login buttons, but instead should be showing a loading state.</p>
  
  <p>Has anyone found a nice way to resolve this and hold the loading state, my initial attempt was to use angular routing to pass through a loading state, but annoyingly the signInWithRedirect service doesn't seem to change the url it redirects to.</p>