//redirect browser to /olympics/article.aspx if article is olympics section but url is /article.aspx
//vice versa, redirect to /article.aspx if article is olympics section but url is /olympics/article.aspx
//articleMisc.js

var currentSection = JS_SECTIONID;
var currentPath = window.location.pathname;
var newlocation = 'http://' + window.location.hostname;

if (currentSection)
{
    if (currentSection == 8853)
    {
        if (currentPath == '/article.aspx')
        {
            //wrong article page used, redirect
            newlocation += '/olympics/article.aspx' + window.location.search;
            window.location.replace(newlocation);
        }
    }
    else
    {
        if (currentPath == '/olympics/article.aspx')
        {
            //displaying a news article in olympics article page, redirect
            newlocation += '/article.aspx' + window.location.search;
            window.location.replace(newlocation);
        }
    }
}




