use constants in redirects