function ersetzen(loc)
{
  top.location.href = loc;
  top.location.replace(loc);
}

if(top.location.href == self.location.href)
ersetzen("/go.php?"+self.location.pathname);
