I have a page on my wordpress site which adds file content to a div using jquery.get
. The file being targeted is a wp-admin file. The problem is, since I added SSL certificate this file no longer loads. When I check the file which is actually loaded it appears to be the log in page.
Jquery Code:
jQuery.get('/wp-admin/admin.php/?page=booking.multiuser.5.3/wpdev-booking.phpwpdev-booking-resources&tab=availability&wpdev_edit_avalaibility=<?php echo key($_REQUEST['avail']); ?>/', function(data, status) {
alert("Data: " + data + "\nStatus: " + status);
}
In the alert box I get status:success
but the data:
that is loaded is the standard wordpress login page.
I have checked other answers on stackoverflow which suggest trailing slashes are the issue but this has not solved the problem.
Is the site switching protocols to http when calling the jquery? I have read elsewhere that this can be an issue and wordpress will log out a user if an http url is called from https file. How would I check to see if this is happening?
UPDATE: If I browse to the file directly I am also redirected to the log in page, even if I am already logged in.