E Commerce post Social Login redirect page

there is a small issue with default ecommerce .
whenever a guest user adds a product to cart , user is redirected to login page , now if user logs in using google option post login the user is redirected to home page instead of the product page.
i am using latest version 11 master
Please help