Automatic hard redirect to localhost/index

when i go to localhost it hard redirects to localhost/index. This does not happen while using incognito.

version: Version 1.29.79 Chromium: 93.0.4577.63

Does the same occur in Chrome? I wouldn’t believe the redirect is done by the browser but via the website.

No it doesn’t.
I fixed it btw.
I was developing an app in which it redirects root to index even after the server was down it still behaves the same. so i made temporary server that redirect index to root.
and now everything works the way it should be.
Thnx for the response