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

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

491 Views

Hello,

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:

https://launchpad-<account>.dispatcher.hana.ondemand.com/start

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,

Chris

Attachments

screenroute.jpg (27.2 kB)