Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
705 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 Answer

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. :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...