I have set up my members area using the wix memebers app and all it going great so far.
I have several pages that only the member can access so it's easy to filter datasets on these pages as I can do it by .currentUser.
However, on the public pages (their profile and forum posts pages) I can't seem to find a way to display/filter by the owners results from the dataset search.
I've tried getting the results from the address bar and removing the unwanted information (to get the owners ID) but the problem is that sometimes it returns the owners ID and sometimes it returns the username, e.g.:
let path = wixLocation.path;
var ret = path.replace('/profile','');
Any help would be greatly appreciated!