See examples on our staging server. Clicking on the link normally causes a white screen, opening in a new tab works fine.
סיכום מבוסס בינה מלאכותית
The discussion revolves around a bug where long URLs break the click tracker in Discourse, causing issues like white screens or ‘414 Request-URI Too Large’ errors. yousef first reported the issue with a lengthy URL, and codinghorror confirmed it as a bug. eviltrout provided a fix via a GitHub commit, which will require rebaking posts with long links. almereyda demonstrated the issue with a 1400-character URL, noting that while some browsers can handle long URLs, server limits (like the 2000-character limit mentioned on StackOverflow) may cause problems. jesus2099 later confirmed that the issue might be partially resolved, as their 853-character URL now works, though older posts remain broken. They also noted that while the max_url_length = 500 setting is still present in the source, some long URLs now function correctly, suggesting a possible fix has been implemented.
Post the link here. Try is reimaged every day so nothing there has any permanence other than the built in topics.
Definitely a bug, @eviltrout. Of course that link could charitably be called “from hell”
Indeed, on our instance it Oneboxes to hide the nasty URL.
Here’s a fix for this one:
https://github.com/discourse/discourse/commit/43c7320f555ed6c933f3acf910039c645af55566
(once it deploys we’ll have to rebake the posts with the long links.)
When trying to open this link on our Discourse, the link tracker breaks
https://wikibase-graph-builder.apps.allmende.io/?mode=wdqs&wdqs=prefix%20bd:%20%3Chttp:%2F%2Fwww.bigdata.com%2Frdf%23%3E%0Aprefix%20wikibase:%20%3Chttp:%2F%2Fwikiba.se%2Fontology%23%3E%0Aprefix%20beta:%20%3Chttp:%2F%2Fwikiba.se%2Fontology-beta%23%3E%0Aprefix%20wdt:%20%3Chttps:%2F%2Fbase.transformap.co%2Fprop%2Fdirect%2F%3E%0Aprefix%20ps:%20%3Chttps:%2F%2Fbase.transformap.co%2Fprop%2Fstatement%2F%3E%0Aprefix%20wd:%20%3Chttps:%2F%2Fbase.transformap.co%2Fentity%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20%3FpropUrl%20%3FpropertyLabel%20%3FlinkTo%20WHERE%20%7B%0A%0A%20%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q237%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q238%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q239%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q240%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q241%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q243%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q244%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q245%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q247%20as%20%3FlinkTo)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q237%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%20.%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q238%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q239%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q240%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q241%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q243%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q244%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q245%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q247%20as%20%3Fitem)%0A%20%20%20%20%20%20%3Fitem%20%3FpropUrl%20%3FlinkTo%20.%0A%20%20%20%20%20%20%3Fproperty%20beta:directClaim%20%3FpropUrl%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q237%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q238%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q239%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q240%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q241%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q243%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q244%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q245%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20BIND%20(wd:Q247%20as%20%3Fs)%0A%20%20%20%20%20%20%3Fs%20%3Fp%20%3Fitem%20.%0A%20%20%20%20%20%20%3Fpl%20beta:directClaim%20%3Fp%0A%20%20%20%20%7D%0A%20%20%7D%0A%0A%20%20SERVICE%20wikibase:label%20%7Bbd:serviceParam%20wikibase:language%20%22en%22%20%7D%0A%7D%0AORDER%20BY%20%3FitemLabel
The behaviour is similar to what is described in Long links break the click tracker
This Discourse says
414 Request-URI Too Large
What a pity, it is a working URL, but may be a browser specificity.
StackOverflow says there is some kind of rough limit at 2000 characters for web servers due to the sitemap specification.
Browsers can handle a lot more, but this will most probably not be solved for the server.
Hi @yousef, please notice that it does not work now: your URL is cut off at 500th character and may not display the intended result — a wontfix bug.
Actually, are we lucky?
My new post here has your link working with all its 853 characters!
Only older posts are still broken, maybe.
That’s super great if my bug is fixed now! I will try at once.
Sorry I test here as it is not fixed on our forums → Search for edits - MusicBrainz (1400 characters).
Actually it is not fixed in my case. I wonder why it now works with 853 characters (which is more than 500) but not 1400.
Work‐around (with Opera presto and Vivaldi, at least): Mouse‐wheel‐click all the links to bypass any javascript (like click tracker).
While I still see max_url_length = 500 in this source:
I have a 1400 character long URL that now works!
This 853 character long URL now works!
Cool! ![]()
This topic was automatically closed after 41 hours. New replies are no longer allowed.