Try following this link to a folder in my OneDrive — it's set to "Anyone with the link can view".
You'll notice that you can see the absolute path of this folder:
Mr. L. Sawczak > Teaching > _Templates > ENG2D > Materials > Grammar > pics > word
This only seems to apply to my organization-managed account. Here's a folder from a personal account that does not reveal the absolute path.
Google Drive neve does this. Here's a Google Drive link:
All you see now is the folder name
Is there some motivation for the difference from a security standpoint? Personally, I think Google Drive's makes more sense. After all, I could keep a file in a folder called
Letters to people I dislike and send you the link to that, not realizing that its location is revealed in the URL once opened.
Incidentally, Microsoft has been asked about this, but in typical Microsoft style they say that not revealing structure is not yet a feature.