Temphire (Angular) 不支持深层链接和刷新?
Temphire (Angular) does not support deep links and refresh?
在玩 Temphire 应用程序时,我注意到当我尝试通过按 F5 刷新页面时,应用程序显示空白页面! (未呈现 ngViewport)
找到解决方案...这是一个 IIS 问题,需要重写 url 以使其正常工作:
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
在玩 Temphire 应用程序时,我注意到当我尝试通过按 F5 刷新页面时,应用程序显示空白页面! (未呈现 ngViewport)
找到解决方案...这是一个 IIS 问题,需要重写 url 以使其正常工作:
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>