不是我的 Angular 5 应用程序,我在我的身份验证周期内有一些处理,用nginx处理 .

Nginx将此后缀添加到我的网址: /root

refreshing 窗口(chrome,firefox ..)工作正常,因为我强制该路由( /root )加载 homePage 组件 .

here is my scanrio :

t0 : http://myUrl

t1 : http://myUrl/root (added by ngninx)

t2 OK : 刷新(firefox或Chrome)
-> http://myUrl/root

-> 这召回了nginx并成功重装了当前路径(homePage)

t2 KO : 刷新( IE11

-> http://myUrl/root

-> this doesn't recall ngninx 并尝试直接重新加载 /root 路线下的组件

Temporarly solution : 仅在 IE11 中:为路径http://myUrl/root/添加“ / ”以使其调用nginx并成功重新加载组件

要注意我的 index.html

<base href="./">

Any suggesstions to that IE11 behaviour ??