Don't add redirect code to compose page if not needed