Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi,
im trying to create QR codes to deeplink to experiences that have spaces in their project name, such as
'Sample Project'
If I urlencode the whole thing to something like
vuforiaview://ptc.com/command/view-experience?url=https%3A%2F%2Fvf-es.ptc.com%2FExperienceService%2Fcontent%2Fprojects%2FSample%20Project%2F
and build a QR code, the link is shown to be invalid.
Without the spaces, e.g. for a 'SampleProject', everythings fine.
Am I missing something here and is there a way to fix this?
Thank you so much
Solved! Go to Solution.
I see that internally to handle this it use "_" underlines ,Possible a question of Studio version
Hi @CS_9203536 ,
so seems that space is working also for qr code example:
https://view.vuforia.com/command/view-experience?url=https%3A%2F%2Fmyexperienceservice.studio.thingworx.io%2FExperienceService%2Fcontent%2Fprojects%2Fspace%2520project%2Findex.html%3FexpId%3D1
So when you publish the project and then go the share button - it generates the deep link and also the qr code
So I used a project named "space project" and it was encoded to "space%2520project" so means that here in QR code is used for space %2520 the url decoder e.g. https://meyerweb.com/eric/tools/dencoder/ will suggest %20 which will not work there
Hi @RolandRaytchev,
thanks for your response. So, it does not even work for QR codes created by Vuforia?
Does that mean there wont be any kind of fix for that?
Thanks and best
no, sorry if there is mistake in my post. The QR code generated by Vuforia Studio with a project having a space in the project name seems to work. But other url encoder seem to use different syntax. And in this case if otherwise the QR code was generated in this will not work
Is your issue occurring in Studio - means the QR code is created by the share tab ? In this case which version of Studio was used?
I used Vuforia Studio 9.6 restricted installation where it was working
Ah, now i see. But I tried to open your QR code above and i got an error message as well.
As i understand it, the suggestion is to have the space in the Experience Service URL encoded (%20) then encode the encoded string to (%2520), which basically escapes the % and append the whole thing to the vuforiaview://[...]?url= link.
However, I tried this before and it didnt work for me as well.
I am sorry , I removed the example from server . Here tested with this "Test Project with spaces" name and was working with the deeplink and the reading the QR code - tested on both Android and IOS I-Pad was able to received the experience . It will be active until next week
here the real ES link for the "Test Project with spaces" project
https://view.vuforia.com/command/view-experience?url=https%3A%2F%2Fmrerot7o.studio-trial.thingworx.io%2FExperienceService%2Fcontent%2Fprojects%2Ftest%2520project%2520with%2520spaces%2Findex.html%3FexpId%3D1
I see that internally to handle this it use "_" underlines ,Possible a question of Studio version
Thanks for your input. So there is probably an issue with the studio version. But I know which path to take with the encodings. Thanks!