I'm starting to learn some web design and integrating PHP scripts with ajax calls to avoid browser refreshes and noticed that my companies site (which I don't have access to the files) has a weird thing going on with the address bar.
So usually the address is like www.site.com/admin.php
, and if I click a link that brings me to www.site.com/Users.php
(hovering shows this address) BUT the address stays at www.site.com/admin.php
.
Heres the weird part. If I middle click the link(open in a new tab) the address will then become www.site.com/Users.php
and all of the $_POST
and $_GET
calls will show up in the address bar like www.site.com/Users.php?user=Adam
.
I use this a lot because if i try to refresh the users page, it goes back to the default admin.php
page unless I opened it in a new tab.
I was wondering if there is a reason why clicking a link normally keeps the address the same and doesnt change the admin.php
to Users.php
?