Hi@isaumya ,
Admin_bar href is solved.
Redirection is not solved.
—–
On the admin page, most pages don’t redirect, but some do.
admin.php?page=opcache-page&swcfpc=1 => admin.php?page=opcache-page&swcfpc=1
x-qm-redirects-redirect-trace
wp_safe_redirect(), flush_opcache(),
do_action('admin_init')
function flush_opcache()
{
if (isset($_GET['flush_opcache']) && $_GET['flush_opcache'] === 'true' && wp_verify_nonce($_GET['_wpnonce'], 'flush_opcache')) {
opcache_reset();
wp_safe_redirect(admin_url('admin.php?page=opcache-page'));
exit;
}
}
add_action('admin_init', 'flush_opcache');
—–
Not on the admin page,The home page does not redirect.
When logged in:
*.com/*/ => *.com/*?swcfpc=1
When not logged in:
No redirection.
-
This reply was modified 1 year, 7 months ago by trivisa.