I create a query using [Post Link] and [Comment Link] and I noticed that the generated links are inverted for some sites, for example:

This https://data.stackexchange.com/ptme/query/775699/bug-in-links (query to pt.stackoverflow meta) generate links like this:


But the correct one is:


Ths https://data.stackexchange.com/esme/query/775699/bug-in-links (query to es.stackoverflow meta) generate links like this:


But the correct one is:


others like Web Apps Meta and Game Dev Meta and Russian Stack Overflow are generating correctly:

including the bug that occurred in Arqade Meta (mentioned in Per-site metas are not linked properly from the Data Explorer) has already been fixed, then it is a problem that only occurs in some cases, test arqade meta:

  • @ShadowtheHedgehogWizard is not dup, bug fixed to "Arcade Meta", see this: data.stackexchange.com/meta.gaming/query/775699/bug-in-links work fine. The bug now is other sites.
    – Korvo
    Commented Dec 28, 2017 at 21:02
  • @ShadowtheHedgehogWizard that's a bug specific to some multi-site queries, where links are generated by specific SQL statements. This bug is specific to Magic Links which are generated by SEDE's JavaScript libraries (IIRC).
    – Glorfindel Mod
    Commented Dec 28, 2017 at 21:02
  • If anything it might be related or a duplicate of this one meta.stackexchange.com/questions/281562/…
    – rene
    Commented Dec 28, 2017 at 21:06
  • @Glorfindel oh, OK, Close vote retracted, comment deleted. Commented Dec 28, 2017 at 21:08
  • @Glorfindel [Comment Link] the same problem occurs :/ (may occur with all "link aliases")
    – Korvo
    Commented Dec 28, 2017 at 21:57
  • 1
    The Sites table inside the Data.stackexchange database needs to be updated with a new value for the url column. This update query at the end is my best guess but it needs Nick to verify and execute as the production data might have more/other variations I didn't cater for.
    – rene
    Commented Dec 28, 2017 at 22:55
  • @rene I'm going to test all the sites that I can and I'll confirm if there was any missing, thanks for the feedback.
    – Korvo
    Commented Dec 29, 2017 at 0:26
  • @GuilhermeNascimentoP. well, that would be a waste of your time I think. If it is like this you'll have to check 160 meta sites. I'll try to nudge a dev in chat to have a look and ask if we can offer any help.
    – rene
    Commented Dec 29, 2017 at 9:29
  • @rene you're right. Thanks!
    – Korvo
    Commented Dec 29, 2017 at 12:15

1 Answer 1


This has been fixed. I went through and updated the sites that had URLs from before the meta. move.

The generated post links should now work for all sites.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .