There is one link on my product page. If the customer is not login than its ask for customer login in the popup and after login, I want to redirect that product page.
So, I am using
customer_login event and in popup login form I am passing product id and save some detail to the database. Now I want to redirect that product page.
in Magento 1 redirect from observer like this
so how can I do this from an observer in Magento 2?