By default Urchin 5 seems to want to open reports in a new window. This can be a little annoying. To change this, we just need to update the javascript function that gets run when you click on the "View Report" link.

view plain print about
1vi /usr/local/urchin/htdocs/ujs/admin.js +434

You should see the following code:

view plain print about
1mywin = window.open('',myname);
2
3mywin.location.href = url;
4mywin.focus();

We're going to comment it out and add our own code:

view plain print about
1//mywin = window.open('',myname);
2
3//mywin.location.href = url;
4
5//mywin.focus();
6
7window.location.href=url;

After clearing our cache, the reports open in the same window.