I need to fetch URL of the page, it works fine on desktop but nothing shows up in mobile version.
(Attached image: Heading 3 should show the path of the current page i.e form-1)
This is URL of quiz page:
https://www.abundancecapital.net/form-1
Please somebody from wix fix this. I have a client waiting for me to complete the quiz project but I can't just move on with this problem in the way
Hi @Falak Soomro!
It seems that you're missing a certain component in your mobile version and since it is being referenced to in the code - it breaks on mobile.
Here's a screenshot of the code in the mobile editor:
You could use the method wixWindow.formFactor, to determine what code would be executed depending on the platform you use (Mobile / Desktop) - note that you'd still need the element to exist in both versions.
Let me know if it works for you.
Best of luck,
Doron.
Thanks Doron. Form factor helped indeed. But path[0] give just 'h' and path[1] just gives 't' and I guess it will go on with https...
Is there any way to reach path of the page on mobile i.e form-1