Weird Bug in redirection (undercore added in url) | Community
Skip to main content
Answered

Weird Bug in redirection (undercore added in url)


Hi,

 

I’ve recently made a (Dutch) test where people people can look for the hosting plan that best fits their needs. After the test people get redirected to a link. This link is set up with the variables from the answers of the test.

 

The problem: for some reason people get redirected to a URL which has underscores in it. It totally messes up the lay-out of the web page. I’ve got no idea why this happens.

 

Here’s a video which shows the problem clearly:

Media not available

 

The website is made with WordPress, Elementor Page Builder, JetEngine, JetSmartFilters and LiteSpeed Cache.

 

Is anyone familiar with this problem? Hope you can help!

 

Kind regards,

Casper

 

Best answer by picsoung

Hey @Casper P. 

I don’t know how I got to be the lucky one, but I was able to see your video.

I imagine those `___` that you are coming from a recall variable that is empty, when a question has been skipped for example.

So it’s probably better to have different endings with different redirections to make sure all the questions have been answered.
Also you could pass each answer as a query parameter instead of a long string in `meta` this should help to parse it better.

Hope it helps

View original

8 replies

Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • June 17, 2021

Hi @Casper P. Welcome to the Typeform Community :hugging:

 

Thanks for sharing all these details, it's super helpful! But I couldn't see the video. Do you mind sending it again? I'll be happy to take a look and help further 🙂 Looking forward to hearing from you! 


Gabriel
Ex–Typefomer
Forum|alt.badge.img+5
  • Community Team
  • 857 replies
  • June 17, 2021

The video is fab @Casper P. I think there’s some sort of bug (another one :sweat_smile: ) whereby some accounts can’t see videos in the community and @Mariana seem to be one of those. We’ll sort that out and I’ll show her your very comprehensive video so she can give us her thoughts. 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5271 replies
  • June 17, 2021

@Gabriel @Mariana - just to confirm that i am also one of the other folks who cannot see the video. 

 

cheers

 

des


Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • June 17, 2021

Hi everyone!

 

Thanks for confirming that, @john.desborough. I'm now able to see the video. Can you refresh your screen and let us know if you can see it as well? Hopefully this has been solved =)

 

And @Casper P.  thanks for your patience in the meantime. I can’t replicate the issue on my side, tested in Chrome and Safari but all good. I do get the ___ in the URL but that doesn’t lead to a bad page design on my side so the two things don’t seem related, especially as _ is a valid URL character it should cause no issues.


This doesn't seem to be a bug from our side because we do send valid URL characters in the URL, the issue is in the landing page, which is something outside of our control. I'd suggest you speak to Wordpress/Elementor to look into. If the URL characters change the content of the page, that’s a big issue for the site in general so Wordpress should be able to better advise you. 

 

Please let us know how it goes! We're looking forward to hearing good news :hugging:

 


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • 384 replies
  • Answer
  • June 18, 2021

Hey @Casper P. 

I don’t know how I got to be the lucky one, but I was able to see your video.

I imagine those `___` that you are coming from a recall variable that is empty, when a question has been skipped for example.

So it’s probably better to have different endings with different redirections to make sure all the questions have been answered.
Also you could pass each answer as a query parameter instead of a long string in `meta` this should help to parse it better.

Hope it helps


  • Author
  • Explorer
  • 2 replies
  • June 19, 2021

@picsoung Wow. I still have to test this some more, but I think you’re right. When I fill in the test and I choose answers which have a filled variable I don’t get the underscores in the URL.

 

I chose to leave certain variables empty, because when somebody for example chooses the option that they have no limit to the price of the hosting package, there’s no need to give this variable a value. I’m going to try out if the problem goes away if I just link every answer to a certain value. So in the case of pricing, if people dont have a maximum spending limit, instead of leaving the variable empty I’m going to give this variable a value from 0 to 40 (maximum price).

 

I’ll let you guys know later if this solves the problem!


  • Author
  • Explorer
  • 2 replies
  • June 19, 2021

@picsoung You sir are my hero! Thanks for your help.

 

I’ve been trying to figure out where this problem came from for days now. Now it’s finally fixed 🙂

 

Apparently, underscores are added in the redirect url if variables are empty. I didn’t know that. To solve it, I gave every single anwer in the test a value so that in the redirect url no variable is empty. I’ve done the test multiple times with different answers. No more underscores in the url as far as I can see. The problem seems to be completely fixed!

 

Also, thanks to all other people who commented. I really appreciate you guys taking the time to help me out!


vickioneill
Forum|alt.badge.img+5
  • Tastemaker
  • 320 replies
  • June 19, 2021

Great video, @Casper P. ! You provided the level of detail before it’s normally requested. Way to anticipate that - then provide all the extras like website and other info that might be helpful to solve the problem. Kudos!!


Reply