Skip to content

Commit 0345532

Browse files
authored
Fixing bookmark links (#19990)
1 parent 8d36043 commit 0345532

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aspnetcore/fundamentals/static-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ An alternative approach to serve files based on authorization:
113113

114114
Directory browsing allows directory listing within specified directories.
115115

116-
Directory browsing is disabled by default for security reasons. For more information, see [Considerations](#sc).
116+
Directory browsing is disabled by default for security reasons. For more information, see [Considerations](#considerations).
117117

118118
Enable directory browsing with:
119119

@@ -349,7 +349,7 @@ The Static File Middleware doesn't provide authorization checks. Any files serve
349349

350350
## Enable directory browsing
351351

352-
Directory browsing allows users of your web app to see a directory listing and files within a specified directory. Directory browsing is disabled by default for security reasons (see [Considerations](#sc)). Enable directory browsing by invoking the <xref:Microsoft.AspNetCore.Builder.DirectoryBrowserExtensions.UseDirectoryBrowser%2A> method in `Startup.Configure`:
352+
Directory browsing allows users of your web app to see a directory listing and files within a specified directory. Directory browsing is disabled by default for security reasons (see [Considerations](#considerations)). Enable directory browsing by invoking the <xref:Microsoft.AspNetCore.Builder.DirectoryBrowserExtensions.UseDirectoryBrowser%2A> method in `Startup.Configure`:
353353

354354
[!code-csharp[](static-files/samples/1.x/StaticFilesSample/StartupBrowse.cs?name=snippet_ConfigureMethod&highlight=12-17)]
355355

0 commit comments

Comments
 (0)