Long links break the click tracker

See examples on our staging server. Clicking on the link normally causes a white screen, opening in a new tab works fine.

1 Like

Post the link here. Try is reimaged every day so nothing there has any permanence other than the built in topics.

https://bugzilla.mozilla.org/buglist.cgi?j_top=OR&f1=short_desc&order=Importance&o1=substring&resolution=---&resolution=FIXED&resolution=INVALID&resolution=WONTFIX&resolution=DUPLICATE&resolution=WORKSFORME&resolution=INCOMPLETE&resolution=SUPPORT&resolution=EXPIRED&resolution=MOVED&o2=substring&query_format=advanced&f2=longdesc&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&v1=IT%20Discourse%20Request&component=Community%20IT&component=Community%20IT%20Requests&component=Community%20IT%3A%20Discourse&component=Community%20IT%3A%20Hosting&component=Community%20IT%3A%20Infrastructure&component=Community%20IT%3A%20Others&component=Community%20IT%3A%20Wordpress&v2=%3A%3A%20Discourse%20Category&product=Infrastructure%20%26%20Operations&product=Mozilla%20Reps

2 Likes

Definitely a bug, @eviltrout. Of course that link could charitably be called ā€œfrom hellā€

1 Like

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.)

2 Likes

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.

1 Like

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 ā†’ Log In - 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).

1 Like

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! :slight_smile:

1 Like

This topic was automatically closed after 41 hours. New replies are no longer allowed.