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**#abc**

In customerrorpage reponse.redirectpermanent to /anotherurlwhichdoesexist

In browser url shows**#abc**

I do not expect the fragment #abc to show url of redirected item.

Is this a bug or how do just without suffix #abc

Visual studio 2022 / IIS 10

A set of technologies in the .NET Framework for building web applications and XML web services.
3,405 questions
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,659 questions
{count} votes