url with '&' does not work as hyperlink in Vuforia View Application. I tried changing it to %26 but it fails. Does anyone has any solution for the same.
Hello @ankitgupta08 ,
do you have an example what do you need to achieve - is this a link /Studio widget / where open a URL and there you want to use '&' for passing of URL paramters
One possible option is to decode it - example
so where you can URL Decode
and to URL encode to encode it back
you can test the url encode/decode on this web site
And believe that it should work but of course it depends on the your particular case (mobile device ...etc) and may be need to be further tested.
So I did tested it further on samsung Galaxy S9+ and it link with parameters was working fine without decoding/encoding - there was not problem with the '&' characters in the url
So tested the Hypeling Text widget to demo webpage
Tested first in preview and it was working fine.
Tested then on mobile device Samsung Galaxy S9+ with the latest Vuforia View and it was working also ok
Another question - it could be an issue of the server where you want to open the link (urf8... etc..)
So in the exmaple below I pasted the link containing a &characters
wher the URL property of the widget was set to :
May be if this work in your case - you can use this element to set the url property and then emit a click event... etc.
@RolandRaytchev Thank you so much for the help. My url also had a backslash which was causing the issue. But somehow after removing the & the link worked with blackslash.
After replacing backslash (\) with %5C; it worked fine.
Thank you for all the help.