My website creates a one to one correspondence with research papers in a preprint server and tags. My users are used to visiting the website preprint.com/123/456. For a paper with id 123-456. This corresponds to mywebsite.com, hence I have a route that redirects mywebsite.com to mywebsite.com.
The idea is that users can hot-swap preprint.com with mywebsite.com and land on the exact paper’s page that they were browsing on the preprint server. This was working fine until someone gave an internal link mywebsite.com in a post and we realized that it is not redirecting and instead gives a 404. I am using Discourse for a very specific and targeted user base, hence, my usecase may sound strange.