Yes, you also get cashback on products that are on sale in the supermarket.
The cashback is calculated based on the actual amount paid. In a 1+1 deal, the total amount (after the discount) is divided by two to determine the price of one product. Cashback is given for that price.