remy / unrot.link

Un-rot your links using the archive.org
26 stars 3 forks source link

redirect.js: skip links that have already been rewritten #6

Closed willnorris closed 8 months ago

willnorris commented 8 months ago

Since the script is writing the new redirect URL back to target.href, if you click the link again, it will recursively redirect.

To reproduce:

netlify[bot] commented 8 months ago

Deploy Preview for unrot ready!

Name Link
Latest commit 112504e71524b90b0cd30f0979b51d25d98cf4c0
Latest deploy log https://app.netlify.com/sites/unrot/deploys/657d3f5f485fa40008a54f04
Deploy Preview https://deploy-preview-6--unrot.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

remy commented 8 months ago

Cheers. Good catch.