[Solution] - Google (& Facebook) User Information on Login

@mikemoynihan99 you are amazing - thank you i will work through this!!!

One more question. I am struggling with the wixlocation.to once the user is registered, logged in - how to have them go to their user page which is www.blahblah.com/AccountHome/{ID} which is the ._id from the “MemberDesignProfile” collection they are inserted into.

Here is the problem:

  1. registered site user ID’s correspond to the _owner ID for the collection.
  2. I query’d my member collection base on _owner ID and used .get for the _id
  3. I can’t figure out how to use this _id in the URL to redirect them to their homepage

CODE BELOW
wixData.query(“MemberDesignProfile”).eq(“_owner”, wixUsers.currentUser.id).find().then((results4) => {
let OwnerRegistered = results4.items;
let MemberID = OwnerRegistered[0]._id;
wixLocation.to(‘/AccountHome/[MemberID]’); })

Thank you for everything - you have saved me HOURS and HOURS of trying to figure these out!