Skip to Content
Jun 07, 2018 at 08:34 AM

Angular on SCP - Routed apps must fallback to index.html



I am trying to host an Angular6 application on SCP and it works fine.

What is not working so far is to start the application with dynamic routes, for example:


Here I get the error: "404 - Not found"

If a call my application without the "/start" it works fine because I am redirected to index.html first and afterwards to "/start".

How can I force the server to send every dynmaic route first to index.html?

As described here there is no solution which works on every server and the server has do be configured for that.

But I dont know which kind of server SCP is using for HTML5 applications?

In my "neo-app.json" I configured :

  "welcomeFile": "index.html",
  "sendWelcomeFileRedirect": true

But this not working for dynamic routes. Anybody an idea how to fix this?

Best Regards,



screenroute.jpg (27.2 kB)