I need a help with magento 2. I noticed that when I place an order as a guest, after checkout i can create an account, when i do this, the order is assigned to this email and this order shows in my account page. But when i place an order, then go to homepage and then create an account using email address which i used to place an order this order does not apear on account page.
Have you any idea how to fix this? Probably add some validation when i creat an account but in which file, how does it work?
Thanks in advance.