Link’s href is cut off after 500 characters


I have a big 1400 character long link here.

If I inspect the document, it’s saved OK in Discourse.
If I right click copy HREF then open new tab paste it and Enter it works OK too.

But if I click it, the HREF URL will get trimmed after 500 characters and I will see an error page…

It must has to do with the click tracker.

※ I’m on Windows, I have tested Opera 12, Firefox, Chromium, IE11.

Max_url_length is only 500 characters, could that be increased?
Long links break the click tracker
(Mittineague) #2

You could have picked a better time no?

MB will remain in read-only mode for another 8-12 hours while the team gets some rest. Sorry!

The server is temporarily in read-only mode for database maintenance.

(Jeff Atwood) #3

I suggest using a link shortener like if you need to post URLs that large.


Sorry I didn“t have any other long URL handy than the one where I spotted the bug on

  1. Right click copy the long link, paste in a notepad, check the length → 1400 characters.
  2. Click the long link, then whatever the page display, copy the URL from the address bar and paste it in the same notepad and check its length → 500 characters.

(Régis Hanol) #5

I think that says it all :arrow_down: :wink:

(Mittineague) #6


I see what you mean.

compared to


Maybe there is no URL ID in the DB and the URL itself acts as the key, thus the size limit…

(Régis Hanol) #8

We just don’t support long URLs.

If you want to use URLs with more than 500 characters, then use a URL shortener like @codinghorror suggested.

(Régis Hanol) #9