Review apps - 404 when visiting URLs other than index

Summary

Known problem with Angular (as well as single page apps in general) when using PathLocationStrategy(https://angular.io/api/common/PathLocationStrategy): index.html isn't loaded for other links than index URL.

Steps to reproduce

  1. visit index URL: https://openstapps-app-review-openstapps-r9pujr.surge.sh/
  2. visit any other directly, e.g. https://openstapps-app-review-openstapps-r9pujr.surge.sh/search

What is the current bug behavior?

Returning 404 on URLs other than index.

What is the expected correct behavior?

User/visitor should be able to access any of the links in the app directly with getting content instead of 404 :)

Possible fixes

https://surge.sh/help/adding-a-200-page-for-client-side-routing

Or using HashLocationStrategy as described here

cc: @sebastianlange

Edited by Jovan Krunić