The commas are not valid for the value mact ! You have probably to use a
"http:mysite.com/index.php?mact"+encodeURIComponent("News,cntnt01,detail,0") for this value with special characters.
NB : You have not to decode this value with PHP (See the Warning in the middle of on this page)
location.href returns whole url, output it to console or just type in chrome/firebug console location.href you might have display problems if you attempt to display it unencoded since & might be interpreted as special char begining (i.e. non breakable space)
maurycy is correct, you can read all about the location object here. some of the characters in the url may be interpreted as html when you try to alert/write out the url to the screen, but it is all there.
Bookmarks