I have a very simple page (entire thing copied below) that, upon loading, randomly redirects the user to one of 7 articles. One article (the last one in the list of links) causes a 404 error every time and I cannot figure out why. The link works fine when copied and pasted into the browser. Any help pointing out what is goofing up would be wonderful, thank you.
<!DOCTYPE HTML>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="http://ift.tt/2yRsIbY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-34602317-1');
</script>
<title>Words That Kinda Matter</title>
<meta charset="utf-8" />
<script type="text/javascript">
var pageArr = ["http://ift.tt/2B84obR", "http://ift.tt/2ySaCGz", "http://ift.tt/2Ba3uLK", "http://ift.tt/2yRuNEC", "http://ift.tt/2B9r2AF", "http://ift.tt/2ySq71i", "http://ift.tt/2BaYPZZ"];
document.location.href = pageArr[Math.ceil(Math.random()*7)];
</script>
</head>
<body>
</body>
Aucun commentaire:
Enregistrer un commentaire