added another condition on redirect function (globs.js)