Fix #1302 : redirect mechanism does not work as expected
Merge pull request #517 from romainneutron/fix-1302

Fix #1302 : redirect mechanism does not work as expected