added isStatic option flag for redirect