DOC: Implement javascript to redirect old whatsnew pages to new ones
- [x] closes #23695 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Javascript file to reformat / redirect 'whatsnew' href links in documentation.