Skip to content

fix: RedirectException no longer defaults to a 302 status code - #10500

Merged
paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:redirect-exception-code-regression
Aug 28, 2026
Merged

fix: RedirectException no longer defaults to a 302 status code#10500
paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:redirect-exception-code-regression

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
Adds a regression fix to #10465. #10465 dropped RedirectException's $code default, so a bare new RedirectException($uri) now throws instead of redirecting with 302. Restores the default via a shared constant.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 28, 2026
@github-actions github-actions Bot added the 4.8 PRs that target the `4.8` branch. label Aug 28, 2026
@paulbalandan
paulbalandan force-pushed the redirect-exception-code-regression branch from b536225 to 29e8651 Compare August 28, 2026 16:13
@paulbalandan
paulbalandan merged commit 680873b into codeigniter4:4.8 Aug 28, 2026
56 checks passed
@paulbalandan
paulbalandan deleted the redirect-exception-code-regression branch August 28, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants