On 2020-03-19 18:10:01 -0500 (-0500), Eric Fried wrote:
Could it at least redirect you to the root of the project you were already looking at? I realize that might break on project renames, but that seems like a massively smaller problem to solve than trying to keep track of internal structural changes in each project's docs.
Slightly heavier-weight, but potentially much more useful, can't the link do some js for you (either on page load or when you click it) to probe, in order:
- The page you were looking for, s/$release/latest/ - failing that, the root of the project, as Ben suggests - failing that, the current behavior
I'm pretty sure Apache .htaccess rules could manage that without any client-side scripting. I know it has ways to define conditional redirect behavior depending on whether specific files exist or not. -- Jeremy Stanley