When the /about or /any page is reloaded, it is first directed to the index("/) page, and then the reloaded page is loaded. How can I ensure that only the reloaded page opens without a redirect?
XML
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="NextJs Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
this url
<action type="Rewrite" url="/" />
when I change it with a new url
<action type="Rewrite" url="/someurl" />
This time, when reloading the "/somepage" page, it first redirects to the "/someurl" page and then loads "/somepage".
Is the problem here in the config settings that's in the picture or is it due to the existing code structure in our project?