Set up the redirect to only work when the static is set to true