I am having that problem that I am getting a different redirect link:
My code:
<script type="text/javascript">
setTimeout(function() {
window.location.href = "<%= @link.link %>";
}, 1000);
</script>
The @link.link is:
<%= @link.link %> = http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3082&adid=544034&acid=4123&eatrackid=47402
The page that the user gets redirected to is:
http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3152&adid=551367&acid=4123&eatrackid=474027
The right url:
http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3082&adid=544034&acid=4123&eatrackid=47402
As you can see there are ; and that shouldnt there not be
I have also this javascript on the page:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function showProgressDots(numberOfDots) {
var progress = document.getElementById('progressDots');
switch(numberOfDots) {
case 1:
progress.innerHTML = '.';
timerHandle = setTimeout('showProgressDots(2)',200);
break;
case 2:
progress.innerHTML = '..';
timerHandle = setTimeout('showProgressDots(3)',200);
break;
case 3:
progress.innerHTML = '...';
timerHandle = setTimeout('showProgressDots(1)',200);
break;
}
}
window.setTimeout('showProgressDots(1)',100);
//-->
</SCRIPT>
Based on this
<%= @link.link %>and your username I presume you are using Rails.Try to change this row:
to this
Your url is htmlencoded. Which means your
&characters becomes&.rawshould fix that I think