question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support GitHub redirect domains in `shorten-links`

See original GitHub issue

Description

Popular bots like Dependabot and Renovate uses redirect domains for references instead of linking directly, so they won’t flood the original discussion.

We can swap those domains with github.com, which is technically also shorten-links.

Known redirect domains:

  • togithub.com* (Renovate)
  • github-redirect.dependabot.com (Dependabot)

* This domain has a pretty obvious (and easy to type) name! I highly encourage contributors use it for demo links. Also, if this issue is resolved, we can get the best of two worlds: direct links without disturbance.

Screenshot

No response

Example URL

https://togithub.com/renovatebot/renovate/pull/12293

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cheap-glitchcommented, Nov 22, 2021

Which is to say I would like the links to behave just like they points to github.com (modifying href), without redirects.

Shouldn’t it be a new feature then? Since the goal is not to shorten the anchor text, but to avoid a redirection, this seems outside the scope of shorten-links imo.

0reactions
fregantecommented, Nov 23, 2021

Which is to say I would like the links to behave just like they points to github.com (modifying href), without redirects.

Interesting. I’d implement this as a avoid-redirects feature that is just a delegate('a', 'mousedown') which changes the links before navigation happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

redirect-urls · GitHub Topics
This is a simple and short URL to redirect users to an NFT domain simply and quickly. You can also use this domain...
Read more >
Undeprecate git.io and restrict new URLs to `github.com ...
Undeprecate git.io and restrict new URLs to `github.com` domain. ... While the git.io url redirection service is read-only and use of the service...
Read more >
gitdotio/gitdotio.github.io: Redirect URLs to your websites ...
Git.io is a URL shortening service that will redirect to your Github projects. If you try to redirect to other domain out of...
Read more >
redirect-urls · GitHub Topics
This is a simple and short URL to redirect users to an NFT domain simply and quickly. ... A simple link redirecting service...
Read more >
Personal URL shortener on your domain with automation ...
Are you ready to continue learning how to work with GitHub Action. ... Permanently redirect from https://<domain>/link-1 to another link ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found