Outlook add in not work with Angular routing under Mac OS(High Sierra 10.13.1)

半城伤御伤魂 提交于 2019-12-13 04:22:20

问题


After updated to latest Mac OS (High Sierra 10.13.1), our outlook web add in not function properly, the page is blank, the reason is the url specified in the add-in manifest is not matched by angular route which is further caused by a wrong manipulated url.

The url I specified in the manifest is

https://localhost:4004/#!/main/viewschedule

But the actual I got from window.location.href is:

https://localhost:4004/?_host_Info=Outlook$Mac$16.01$en-US%23!/main/viewschedule 

Please note %23 in the url above, that means character '#' has been encoded to %23 which lead angular route does not match routes defined in my application.

We use Angular 1.6, outlook on Mac is 15.40.

We tried to enable html5 mode for angular routing described here. However it looks like outlook office.js could set window.history.pushState to null during its loading. And that history api is a dependence for html5 mode of angular routing.

Question is how can I fix it, can I look forward a future release of outlook to fix this problem?

来源:https://stackoverflow.com/questions/48074433/outlook-add-in-not-work-with-angular-routing-under-mac-oshigh-sierra-10-13-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!