Skip to content

when logging out the homepage is fetched twice#5160

Merged
fisharebest merged 2 commits intofisharebest:mainfrom
BertKoor:issue5153_logoutTriggersFetchHomeTwice
Feb 9, 2026
Merged

when logging out the homepage is fetched twice#5160
fisharebest merged 2 commits intofisharebest:mainfrom
BertKoor:issue5153_logoutTriggersFetchHomeTwice

Conversation

@BertKoor
Copy link
Copy Markdown
Contributor

@BertKoor BertKoor commented May 28, 2025

fix #5153

The logout request handler may respond with a simple 204-NoContent. The originating view already contains redirection. As reported on the forum, some servers don't cope well.

Affected user reported back this patch does the trick: logout goes smoothly.

The logout request handler may respond with a simple 204-NoContent.
The originating view already contains redirection.
As reported on the forum, some servers don't cope well.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.07%. Comparing base (e7a9d13) to head (f9ced6c).
⚠️ Report is 255 commits behind head on main.

Files with missing lines Patch % Lines
app/Http/RequestHandlers/Logout.php 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5160      +/-   ##
============================================
- Coverage     35.53%   35.07%   -0.46%     
- Complexity    11143    11204      +61     
============================================
  Files          1157     1161       +4     
  Lines         47737    48488     +751     
============================================
+ Hits          16961    17009      +48     
- Misses        30776    31479     +703     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ponse or redirection

Check whether header 'X-Requested-With' is not empty, similar as done in HandleExceptions.php
so actual value of the header may change and not affect this behaviour.
@BertKoor BertKoor force-pushed the issue5153_logoutTriggersFetchHomeTwice branch from 76d4626 to f9ced6c Compare August 14, 2025 06:48
@BertKoor BertKoor changed the title fix #5153: When logging out the homepage is fetched twice. when logging out the homepage is fetched twice Jan 23, 2026
@fisharebest fisharebest merged commit d371bd1 into fisharebest:main Feb 9, 2026
5 of 14 checks passed
@fisharebest
Copy link
Copy Markdown
Owner

Thanks!

@BertKoor BertKoor deleted the issue5153_logoutTriggersFetchHomeTwice branch May 1, 2026 10:57
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.

Logout action triggers a GET of the homepage twice

2 participants