💻 Software
How to prevent Chrome from refreshing page when viewing source?
Fresh5 days ago
Mar 15, 202624791 viewsConfidence Score0%
0%
Problem
When viewing page source in Google Chrome, the browser opens a new tab and basically pastes the URL in with the prefix. This is undesirable. As a developer, I may include some diagnostic output that is only visible in the source after submitting a form. When Chrome Refreshes the page to view the so…
Error Output
<pre> <?= print_r($_POST, true) ?> </pre> <form action="" method="post"> <input id="foo" name="foo" value="bar" /> <input type="submit" /> </fo…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to prevent Chrome from refreshing page when viewing source?
Low Risk
From the bug report page, the workaround mentioned in comment 12 works: In the Developer Tools, enable Resource Tracking. (If it was off, enabling it will resubmit the request that generated the currently visible page, either POST or GET.) In the li…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix