Response.Redirect with a fragment identifier causes unexpected refresh when later using location.hash

后端 未结 2 1415
孤独总比滥情好
孤独总比滥情好 2020-12-18 09:15

I was hoping someone can assist in describing a workaround solution to the following issue I am running into on my ASP.NET website on IE. In the following I will describe th

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 09:50

    I have the same problem. I have tried Eric's suggestion above (without the Cache-Control header), and it still does not work. This seems to be a bug in IE for sure.

    This question mentions a bug with these words: "So this bug may be is the ie bug .when web app via a redirect,the browser may only see the prev url ,so when you modify the location.hash ,the browser do the url change ,so refresh the page."

    I have also tried the solution suggested there with different types of charsets, but with no success.

提交回复
热议问题