Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
835 views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...