added friendly id redirect support