translated by GPT4o#
I’ve never used WordPress before, but I decided to give it a try. I set it up in a specific subdirectory with a reverse proxy in between. However, even though I requested something like:
/xxxx/wp-admin/index.php
The browser’s address bar showed:
/wp-admin/index.php
I thought, “Someone must be using the History API,” so I investigated. I found the following code (the URL has been changed):
<link
id="wp-admin-canonical"
rel="canonical"
href="https://example.com/wp-admin/"
/>
<script>
if (window.history.replaceState) {
window.history.replaceState(
null,
null,
document.getElementById("wp-admin-canonical").href + window.location.hash
);
}
</script>
wp-admin-canonical…? I asked ChatGPT, and it explained something about SEO optimization and consistency, but seriously, what is this…?
After investigating further, I found this: https://core.trac.wordpress.org/ticket/35561
And finally, I realized that even as of two weeks ago (from today, 2024/08/17), the issue still hasn’t been resolved.
They’ve got to be kidding me.
There’s no other way so I would like to install the plugin that kill wp-admin-canonical referred in forum.
P.S.
When I was installing plugin, I encountered some trouble and I found the solution here:
https://wordpress.org/support/topic/why-this-plugin-cannot-install/