Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect mostRecentPreReleaseVersion in a way that actually works (#258)
Followup to 6136389. The redirect for /stable and /dev worked, but not /prerelease. Test on fully built site: ``` $ curl http://localhost:3000/2.22/docs/introduction/welcome-to-pants <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="refresh" content="0; url=/prerelease/docs/introduction/welcome-to-pants"> <link rel="canonical" href="/prerelease/docs/introduction/welcome-to-pants" /> </head> <script> window.location.href = '/prerelease/docs/introduction/welcome-to-pants' + window.location.search + window.location.hash; </script> ```
- Loading branch information