Skip to content

Doc: Clarify request context handling in UseStatusCodePagesWithReExecute (#34070) - #37818

Merged
guardrex merged 1 commit into
dotnet:mainfrom
SkyDevLab:docs/34070-status-code-pages-reexecute-context
Oct 9, 2026
Merged

guardrex merged 1 commit into
dotnet:mainfrom
SkyDevLab:docs/34070-status-code-pages-reexecute-context

Conversation

@SkyDevLab

@SkyDevLab SkyDevLab commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Clarify that UseStatusCodePagesWithReExecute modifies only the request path (clearing route data) while preserving original request data such as HTTP method, headers (including referrer), and items on HttpContext.Request. Also note that original path and query details are accessible via IStatusCodeReExecuteFeature.

Fixes #34070


Internal previews

File Preview link
aspnetcore/fundamentals/error-handling.md Learn preview
aspnetcore/fundamentals/error-handling/includes/error-handling3-7.md Learn preview
aspnetcore/fundamentals/error-handling/includes/error-handling8.md Learn preview
aspnetcore/fundamentals/error-handling/includes/error-handling9.md Learn preview

Build report

@SkyDevLab
SkyDevLab requested a review from guardrex as a code owner October 8, 2026 17:32
@guardrex guardrex self-assigned this Oct 8, 2026

@guardrex guardrex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! All true! Thanks again, @SkyDevLab! 🎸

I love seeing the issue count go down so rapidly on this repo! 🤩

@guardrex
guardrex merged commit b404d07 into dotnet:main Oct 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UseStatusCodePagesWithReExecute method original context handling unclear

2 participants