Add a debug statement for redirects