Fixing autonav controller so it doesn't rewrite URLs if on root domain