That is easy to configure the Redirect to customer dashboard after login in Magento 2 feature in backend. With Magento 2 you can enable or disable redirecting customers to customer dashboard after they log in. If you want to let customers stay on a current page or continue shopping, you should consider that feature because redirect feature is enabled by default.
Stores. In the
Customersin the panel on the left
Login Optionssection, and continue with following:
Set Redirect Customer to Account Dashboard after Logging in field, select one of the following:
Yes: allow showing the customer account dashboard when customers log in to their accounts.
No: no redirect to customer account dashboard when customers log in to their accounts.
When complete, click
Ref: Magento 2 User Guide
It comes to the end of tutorial: How to Rediect to Customer Dashboard after Login in Magento 2.