Membership login not working with Divi

Members can't log in with Membership login shortcode/widget. The page redirects to 404 and /login/ slug is added at the end of the URL.

Redirect Add-on is enabled. The issue appears only when Divi is enabled.