Linking to code across repos

I was taking a read of github dot com: /en/github/writing-on-github/working-with-advanced-formatting/creating-a-permanent-link-to-a-code-snippet#linking-to-code and this works great WITHIN the same repo, so I can select the “Reference in new issue” by selecting this from the ellipsis that appears next to the selected text.

Now this works great within the same repo, so an example URL is

https://github.com/PCMDI/amipbcs/issues/new?permalink=https%3A%2F%2Fgithub.com%2FPCMDI%2Famipbcs%2Fblob%2Fac641dfa1bee45d4b259e891f06ca7e98b8734ea%2FCMOR%2Fdrive_input4MIPs_obs.json%23L15-L27

But, if I try and use this link in another repo, creating an issue outside of the source code, the URL doesn’t expand so for e.g.

https://github.com/PCMDI/cmor/issues/new?permalink=https%3A%2F%2Fgithub.com%2FPCMDI%2Famipbcs%2Fblob%2Fac641dfa1bee45d4b259e891f06ca7e98b8734ea%2FCMOR%2Fdrive_input4MIPs_obs.json%23L15-L27

Is there a way of forcing this?

I have gotten around this by taking a screenshot, but this seems a very clumsy way of achieving a similar outcome - what I wanted to achieve (sans screenshot) can be viewed in https://github.com/PCMDI/cmor/issues/628

@tcbyrd any suggestions for me?