As part of my work, I sometimes I need to redirect links to a local installation of a web app, so I can debug a particular issue.
For example, I might receive an email with a link to
https://test.example.com/what/ever?thing=stuff but I want to see what happens with the code running at
http://localhost:3000/what/ever?thing=stuff. For a while I’ve been copying the link, pasting it, manually editing it, and carrying on. But I thought there had to be a better way.
So when the redirect is enabled, any links to
https://test.example.com will be redirected to
localhost:3000. Thank you, Einar!