Hi,

I am developing a "limited to store" plugin for customers.

I tried to figure out how nopCommerce handles redirection to the login page when a customer doesn't have the correct rights. In the PublicStoreAllowNavigationAttribute, I noticed the ActionFilter sets an HttpUnauthorizedResult as the action result, so I figured nopcommerce would somehow catch the 401 and redirect the customer to the login page.

I tried the same approach from my own ActionFilter, however, when I set the HttpUnauthorizedResult, the browser just shows me a 401 - Unauthorized page.

What is the correct way to approach this issue?