26

In comments here on Meta SE I can use the magic link [so] to link to http://stackoverflow.com.

Consequently, I would have expected the magic link [meta.so] to link to http://meta.stackoverflow.com but that magic link does not seem to be available.

Can it be added, please?

  • 5
    I think this specifc feature should be expanded into a broader request for more, more consistent magic links, but I would enjoy this as-is. – cat Apr 13 '16 at 12:29
  • 1
    Thanks for the bounty @cat - I figure that this is the missing magic link with the highest profile so the best place to start asking for more. – PolyGeo Apr 13 '16 at 12:33
  • Do magic links support linking to questions/answers? – Moshe Apr 15 '16 at 23:10
  • @Moshe Not as far as I know; I use the share button beneath them to grab those links. – PolyGeo Apr 15 '16 at 23:26
  • 4
    Given that you can already use e.g. [meta.gaming.SE] to link to Arqade Meta, the fact that this doesn't work for the SOFU trilogy sites seems like a simple oversight that should be fixed. – Ilmari Karonen Apr 30 '16 at 19:16
  • @cat: I guess you didn't see what happened to meta.stackexchange.com/questions/230398/… ? – SamB Sep 19 '16 at 15:35
  • @SamB :(((((((( – cat Sep 19 '16 at 19:07
  • What's worse is that [metaso] links to Meta Stack Exchange and not to Meta Stack Overflow as you would expect. – Donald Duck May 18 '18 at 19:36
5

Given that this already works for every per-site meta except for meta.SO, meta.SU and meta.SF (and, presumably, meta.pt.SO and the other localized SO metas), I'm pretty sure that this is just a simple oversight that should be fixed.

(For example, typing [meta.gaming.SE] into a comment expands into a link to Arqade Meta. See this comment above for a live demonstration.)

8

I agree with the comment of 'cat' that this feature request would be great to have, but there is so much more to add to.

I would love to see the magic link feature work over the entire network in a consistent way. I would love to see these magic links implemented:

  • [main]: this would link to the main site, so on Stack Overflow or Meta Stack Overflow it would like to http://stackoverflow.com.
  • [meta]: this would link to the per-site meta site, so on Stack Overflow or Meta Stack Overflow it would like to http://meta.stackoverflow.com.

It this way you can link to any site within the own scope.

You could even take that further by assigning a code to every site so you can link the sites from another site in the network. So so. for Stack Overflow would make [so.main]. Seasoned Advice would be something like [cooking.main].

  • Where do we define abbreviations? Is AskDifferent ad or apple? Commonly used names or sub domain? – Moshe Apr 15 '16 at 23:09
  • 1
    @Moshe I would expect [apple.se] to expand to Ask Different, which it does, so try typing it into a comment to see that it works (once the comment is saved). – PolyGeo Apr 15 '16 at 23:27
  • [meta.main] should link to meta.stackexchange.com. – OldBunny2800 Apr 17 '16 at 21:28
  • @OldBunny2800 [meta.se] links to Meta Stack Exchange. [metaso] also does, which doesn't make sense. – Donald Duck Aug 18 '17 at 9:04
6
+50

I've made a 'Magic links enhancer' userscript to make magic links more useful across all SE sites.

It uses @M'vy's idea of having a basic format of [SITE:type:id], and works the same way across the network.

Links are expanded at POST time, so readers don't need to have the extension installed to see or use the links.

Where

  • SITE is SF, SO, SU, meta, metaSU with default to the current site
  • type can be user, post, faq with default to post
  • id can be the id of a post, of an user and anchor a HTML anchor like in the FAQ, or a comment, or a anwser.

You can only use default values from the left. If you specify SITE you have to specify all.

(quoted from his post)

SITE can be su, so, sf, or any other SE site by using their API sitename (the thing before .stackexchange.com), eg. [pets], [chess] will expand to the link to that site.

type (followed by anchor) can be user (followed by user id), post (followed by post id), help (followed by help page name in URL), or priv (followed by priv name in URL).

Install it from GitHub Gist

(or view the source)


Examples (if posted in a comment on this site):

  • [274240] => [Adding magic link for Meta Stack Overflow?](https://meta.stackexchange.com/q/274240)

  • [so:post:1732348] => [RegEx match open tags except XHTML self-contained tags](http://stackoverflow.com/q/1732348)

  • [so:post:1732454] => [RegEx match open tags except XHTML self-contained tags](http://stackoverflow.com/a/1732454)

  • [meta.so:post:321111] => [How to help less-skilled developers?](http://meta.stackoverflow.com/q/321111)

  • [user:260841] => [ᔕᖺᘎᕊ](https://meta.stackexchange.com/users/260841/%e1%94%95%e1%96%ba%e1%98%8e%e1%95%8a)

  • [pets:priv:trusted-user] => [trusted user](//pets.stackexchange.com/help/privileges/trusted-user)

  • [stackapps:help:dont-ask] => [Help Center](//stackapps.com/help/dont-ask)

  • [help:dont-ask] => [Help Center](http://meta.stackexchange.com)

  • [meta.so] => [Meta Stack Overflow](//meta.stackoverflow.com)

  • 4
    I've made a 'Magic links enhancer' userscript to make magic links more useful across all SE sites. 'Course you have. :D – cat Apr 17 '16 at 19:45
  • 3
    LOL, anything for you, our most loyal SOX user :P but it actually could be really useful! :D and I liked the idea ;) – ᔕᖺᘎᕊ Apr 17 '16 at 19:46
  • 3
    I'm honoured to hold such a title :D I hope this makes it into SOX :) – cat Apr 17 '16 at 23:00
  • I've found a (really annoying) bug: if I put something like [tag: blah blah] to refer to a tag like that, it changes to undefined when the comment's submitted. – cat Apr 21 '16 at 13:19
  • Test: I'm going to type [tag:status-completed]: status-completed (script disabled) – cat Apr 21 '16 at 13:20
  • And then with the script enabled: undefined undefined – cat Apr 21 '16 at 13:20
  • :o it changes both of them! – cat Apr 21 '16 at 13:21
  • Also, editing a comment with a [tag:inline-code] or a real tag changes it to undefined when the edit's submitted. – cat Apr 21 '16 at 13:24
  • 1
    no worries :P If I get bored, maybe I'll try my hand at browser JS. – cat Apr 21 '16 at 17:07
  • 1
    @cat It should be fixed now! Sorry for the extreme delay! Had a busy few weeks... – ᔕᖺᘎᕊ Apr 30 '16 at 13:56
  • 1
    No worries, thanks for fixing it! :D – cat Apr 30 '16 at 13:56

You must log in to answer this question.

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