response.redirectpermanent in customerrorpage keeps fragment (bookmark)
2Compute bv
0
Reputation points
I have a custom Error page trapping http error 404.
In the load event (VB.NET) I do a reponse.redirectpermanent to another page
eg. : Browser navigate to https://www.mysite.com/sometUrlwhichdoesnotexist**#abc**
In customerrorpage reponse.redirectpermanent to /anotherurlwhichdoesexist
In browser url shows https://www.mysite.com/anotherurlwhichdoesexist**#abc**
I do not expect the fragment #abc to show url of redirected item.
Is this a bug or how do just https://www.mysite.com/anotherurlwhichdoesexist without suffix #abc
Visual studio 2022 / IIS 10