Jump to content
  • Sign Up

[Forum] something added to urls make them not work anymore


Recommended Posts

So sorry for using this link (I did not intend to advertise here) but it's the one where this issue occured to me:https://www.timeanddate.com/worldclock/fixedtime.html?msg=rng+protest&iso=20171118T19&p1=259&am=30

When clicking on it, it shows the following link in the leaving-tab which makes the link not work correctly:https://www.timeanddate.com/worldclock/fixedtime.html?msg=rng+protest&iso=20171118T19&p1=259&am=30

This happened to me with Firefox (Win 10), Opera and Edge.

Edit: Well, when you quote me you can see the addendums (this is strange too).

Link to comment
Share on other sites

Basically, the URL just isn't getting encoded properly on the site you're using so changes get made here to the URL and things don't work out as planned but nothing's "broken" exactly.

But, for an example that it can work, I give you....

The Greatest Link Ever

That's the same site, but before I used the "Short URL" option at the bottom of the page it looked like this:https://www.timeanddate.com/worldclock/fixedtime.html?msg=Gw2+Living+World+Season+4&iso=20171128T18&p1=259&ah=6 and didn't work.Shortening it makes it nice and tidy, like this: https://timeanddate.com/s/3d9d

Feel free to hang on to that new and improved event there....the other one was decidedly less fun. :wink:Also, as another alternative, if you use the countdown to event option under the timer, that URL copies over just fine also.

:smiley:

Link to comment
Share on other sites

@SoulPariah.2856 said:That's the same site, but before I used the "Short URL" option at the bottom of the page it looked like this:https://www.timeanddate.com/worldclock/fixedtime.html?msg=Gw2+Living+World+Season+4&iso=20171128T18&p1=259&ah=6 and didn't work.

I did some online research here, and it seems to be related to the forums editor, that replaces & with &amp or ;amp or something like this, invalidating the url this way. I dunno, but I think this is forum-software-related.

Link to comment
Share on other sites

@Lanhelin.3480 said:I did some online research here, and it seems to be related to the forums editor, that replaces & with &amp or ;amp or something like this, invalidating the url this way. I dunno, but I think this is forum-software-related.

It is due to the forums. They're sanitizing the posts, which replaces special characters like & with their HTML code (&). They then encode the URL, which further replaces special characters, like & with %26. When they decode it however, they forgot about the initial sanitization, which shouldn't be happening to URLs in the first place.

The URL no longer works as expected because the names of the variables have changed ("iso" is now "amp;iso" for example), which the receiving site doesn't know what to do with.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...