[wp-trac] [WordPress Trac] #61854: WordPress Post/Page navigation breaks when HTTP3 enabled.
WordPress Trac
noreply at wordpress.org
Sat Aug 10 21:29:07 UTC 2024
#61854: WordPress Post/Page navigation breaks when HTTP3 enabled.
----------------------------+-----------------------------
Reporter: atulhost | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.6.1
Severity: critical | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Hello beautiful and handsome WordPress contributors. I would like to
introduce a bug which I recently discovered when I was switching my all-
client's site to HTTP/3 which is out of draft in Nginx web server.
I recently made a switch to HTTP/3 and let it enable for testing if
everything works or not.
Soon I realized when I tried to edit some week-old content that navigation
is broken.
When I click on next page it breaks to something like this: https://wp-
admin/edit.php?paged=2
When I inspected in browser it ends up like this: https:///wp-
admin/edit.php?paged=2
Here is console error from browser:
{{{
Uncaught DOMException: Failed to execute 'replaceState' on 'History': A
history state object with URL 'https://wp-admin/edit.php' cannot be
created in a document with origin 'https://www.atulhost.com' and URL
'https://www.atulhost.com/wp-admin/edit.php'.
at https://www.atulhost.com/wp-admin/edit.php:59:19
(anonymous) @ edit.php:59
}}}
When I click on that error line the output is:
{{{
<link id="wp-admin-canonical" rel="canonical" href="https:///wp-
admin/edit.php"/>
<script>
if (window.history.replaceState) {
window.history.replaceState(null, null,
document.getElementById('wp-admin-canonical').href +
window.location.hash);
}
</script>
}}}
I tried reviewing my all configs of nginx and last changes I made, and I
came to a conclusion that it breaks whenever I enable HTTP/3. I made my
HTTP/3 code public here: https://www.atulhost.com/enable-http3-in-nginx
When I switch back to HTTP/2 it works fine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61854>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list