Added product and cat page redirection handling to modal.