title: Redirect errors using angular 4 on nginx
body: <p>While using PathLocationStrategy for Angular apps after the authentication redirection I am getting 404 error on Nginx.</p>
  
  <p>The bowser gets redirected from /login page to Authorize page in another domain and after successful validation it gets redirected to <a href="http://127.0.0.1:4200/homepage&amp;access_token=&amp;token_type=bearer&amp;state=XYZ&amp;expires_in=3599" rel="nofollow noreferrer">http://127.0.0.1:4200/homepage&amp;access_token=&amp;token_type=bearer&amp;state=XYZ&amp;expires_in=3599</a>. </p>
  
  <p>But I think as ngnix tries to identify it as separate page I am getting a 404 not found error. Also if I am trying to access the page directly like <a href="http://127.0.0.1:4200/homepage" rel="nofollow noreferrer">http://127.0.0.1:4200/homepage</a> I am getting 404, but when navigating from the app its working.</p>
  
  <p>Is there any setting in nginx to resolve this error ? (FYI: I have used Ngnix rewrite rules but still not able to resolve the issue) </p>