It does not wait for the JavaScript to run the redirect. To Google, you served a page that has nothing to do with the URL. That is a Soft 404. The fix is simple: move the redirect from the app to the ...