So I have made a JS system to load pages, into a default div named PageContent, now I am needed to use the PHP $_GET function and it seems that my JS is making it so the URL variables do not get set.
The Pageload.js https://hastebin.com/idazuwovoz.js
The issue is when I add a variable to a URL such as example/pages/email?id=10
and then use $_GET['id'] on that page it is blank and saying it is not set, I need to keep the JS as it is a big part of the site and required, but I also need the PHP $_GET to work, can anyone help me solve this issue, please.