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
653 views
in Technique[技术] by (71.8m points)

javascript - How do I redirect IE11 to Edge like Stack Overflow

When you navigate to https://stackoverflow.com in IE11, it redirects the user to Edge with the following tab open: https://support.microsoft.com/en-us/office/the-website-you-were-trying-to-reach-doesn-t-work-with-internet-explorer-8f5fc675-cd47-414c-9535-12821ddfc554?ui=en-us&rs=en-us&ad=us

How do I implement this in my own site? Is there a meta tag that can enable this?

EDIT: Here's a clip of what it looks like. Tried on Windows 10. https://streamable.com/nwtt22

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

Ah yes, I wondered this too, and also assumed to be a browser only thing.

Sure enough! It's the ie_to_edge_bho (Browser Helper Object) DLL file found in the Edge Program files.

I was curious enough to Hex edit the DLL file and found the URL in which it pulls these approved sites from... almost like a master/default list.

Yes, it's built into the BHO, no it's not stored locally from what I can tell. (Screenshot of Hex editor)

Here is the link: https://go.microsoft.com/fwlink/?linkid=2133855

Which forwards to https://edge.microsoft.com/neededge/v1

I have no idea how you get your own site on this list, but I figured I would add this information. :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
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

57.0k users

...