Hi all,
I have a project to let the user to use the webAPP, but there is privacy issue.
My Idea is to give my user the dynamic URL with appended the secret code after the thunkable URL.
For example:
My original webAPP URL: thunkablecompanion
“thunkable.site/web-build/index.html?webAppId=U4yrhrBoQ”
Now I want to give the user the URL:
“thunkable.site/web-build/index.html?webAppId=U4yrhrBoQ&ID=99999999”
ID=99999999 → is the number I create in other program and each time or each user get different ID. The ID is used for login.
I test the URL like this, the webAPP work fine even if append other text by &…
Now I got the problem is that I can’t get the current browser URL inside the APP.
How to get current URL inside the APP??
I search the topic that,【open link】function could do some javascript ,but only in new window.
For example: javascript to get the URL information
javascript:(function(){const parsedUrl = new URL(window.location.href);
var a=parsedUrl.searchParams.get(“ID”);
alert(a);})()
This javascript work well in Web.
But in current thunakable webAPP, I still can’t get current URL.
Is there possible function like 【open link】 to perform javascript but not in another new webpage?
Or just function could run the javascript in the same thunkable WebAPP URL?
Thanks a lot!