Redirect group forum subnav

I’m trying to figure out how to redirect a group’s forum subnav to another url once group forums have been merged with Global Forums by @sbrajesh. That ‘landing’ url would be static, with only the group name being dynamically added at the end like so:http://example.com/siteforums/group-forums/test-group where test-group is the group’s name.

I’ve found a js snippet that enables redirects after headers have been defined, but I’m not sure how to implement it in a function, or if it would need to hook to an action, added to a template, or what The neat little bit of js in question is #3 on this page: http://shibashake.com/wordpress-theme/wordpress-page-redirect

I’ve tried a few amateurish functions but js is really NOT one of my strong points. If anyone could give a hand with some ideas I could try, I’d be very grateful. Thanks!