简体   繁体   中英

URI Scheme Redirect

How can I create a special URI scheme to open a link in Internet Explorer from Google Chrome?

For example, if I execute ie:google.com in Chrome, a new window would open in IE with Google's homepage. I've followed the steps in " Registering an Application to a URI Scheme ", however it literally passes the string ie:google.com to IE, which IE has no idea what do with.

Essentially I need to remove the the ie: protocol once passed to IE, or setup some sort of protocol redirect to http: in the registry. Is either even possible?

Since this is an internal app, I can just create a proxy in my internal app to strip out the "ie:" protocol. Registry looks like this...

HKEY_CLASSES_ROOT/
  ie/
    shell/
      open/
        command/
          (Default) "PathToExecutableIE" "ProxyLink?url=%1"

Then, my ProxyLink is a static VB.Net page that strips out the "ie:" part of the string, and redirects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM