How to redirect the page to login page if the user is not logged in. And if the user is logged in then the category redirects correctly?
I use magento 2.2.5 community edition.
Thank you