agnostic redirect in express