S3 上的深层链接不起作用

Deep linking on S3 not working

我已成功将我的 angular5 应用程序部署到: http://myApp.s3domain.amazonaws.com

Angular 路由器自动将我路由到 http://myApp.s3domain.amazonaws.com/home

我的应用程序是这样构建的,参数的使用方式如下:http://myApp.s3domain.amazonaws.com/home/uniqueParameter

这重定向到我的 error.html,而不是 link。它在本地工作。

我如何实施正确的深度 linking?

好吧,我改用 firebaseapp 并将 firebase.json 设置为

来解决这个问题
{
  "hosting": {
    "public": "dist",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

现在有效。