Sur le site indiqué il y a un post avec le même phénomène que nous et la réponse semble claire : « IE7 introduced a regression »
# Problems with file URLs with anchors in Internet Explorer 7
Thursday, December 07, 2006 11:17 AM by Tomas
We are having some trouble with file URLs in Internet Explorer 7 that can hopefully be answered by someone here. We have a software with an online documentation that lets you click on a Help button in each dialog box in the GUI and then go into the appropriate section in the HTML documentation.
This is done by calling Internet Explorer with a file URL with an anchor to get into the appropriate place in the given help file. This means that we do something like
iexplore file:///c:/product/doc/drawing.htm#circles
The problem is that Internet Explorer 7 strips everything after the # and the drawing.htm file is opened at the begining and not at the correct position.
The above syntax has worked in Internet Explorer 6 and older and also works in the other major browsers. I can also add that our application is written in Java so we need to be able to feed a file URL to Internet Explorer in a way similar to the one indicated above.
Can someone please tell what we should do to accomplish the thing above in Internet Explorer 7.
====================================================================
# re: File URIs in Windows
Thursday, December 07, 2006 3:09 PM by EricLaw [MSFT]
@Tomas: Yes, I'm sorry to say that IE7 introduced a regression in this behavior. The bug is as you noted, when passed a file URI on the command line containing a fragment, the fragment is dropped during navigation.
Partager