Thanks for your quick reply Paul.
But that can't be right. The known bug is only because of running the command in the root web ie https://mydomain.sharepoint.com
In my case, I'm actually running it on a sub-site in a site collection ie (from SPGetCurrentSite, I got /Site1/subsiteA/)
I have tried going directly to the following:
https://mydomain.sharepoint.com/_layouts/userdisp.aspx?Force=true
https://mydomain.sharepoint.com/Site1/subsiteA/_layouts/userdisp.aspx?Force=true
But only the first link works. So my arguments of SPGetCurrentUser({webURL: 'https://mydomain.sharepoint.com', fieldName:'Title'}) should be correct in theory.
I will try the workaround to see if it works.
Christopher
But that can't be right. The known bug is only because of running the command in the root web ie https://mydomain.sharepoint.com
In my case, I'm actually running it on a sub-site in a site collection ie (from SPGetCurrentSite, I got /Site1/subsiteA/)
I have tried going directly to the following:
https://mydomain.sharepoint.com/_layouts/userdisp.aspx?Force=true
https://mydomain.sharepoint.com/Site1/subsiteA/_layouts/userdisp.aspx?Force=true
But only the first link works. So my arguments of SPGetCurrentUser({webURL: 'https://mydomain.sharepoint.com', fieldName:'Title'}) should be correct in theory.
I will try the workaround to see if it works.
Christopher