Skip to content

Commit 892ada7

Browse files
Merge pull request #276352 from craigshoemaker/swa/issue/fallback
[Static Web Apps] Update: Configuration - add route details on navigationFallback
2 parents 4237229 + 2830d6d commit 892ada7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/static-web-apps/configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.custom: engagement-fy23
66
author: craigshoemaker
77
ms.service: static-web-apps
88
ms.topic: conceptual
9-
ms.date: 05/17/2024
9+
ms.date: 05/24/2024
1010
ms.author: cshoe
1111
---
1212

@@ -201,6 +201,9 @@ The following example configuration blocks anonymous access and redirects all un
201201

202202
Single Page Applications often rely on client-side routing. These client-side routing rules update the browser's window location without making requests back to the server. If you refresh the page, or go directly to URLs generated by client-side routing rules, a server-side fallback route is required to serve the appropriate HTML page. The fallback page is often designated as _index.html_ for your client-side app.
203203

204+
> [!NOTE]
205+
> Route rules aren't applied on requests that trigger `navigationFallback`.
206+
204207
You can define a fallback rule by adding a `navigationFallback` section. The following example returns _/index.html_ for all static file requests that don't match a deployed file.
205208

206209
```json

0 commit comments

Comments
 (0)