Cherry pick all permanent wp index links stuff.

https://www.openproject.org/work_packages/7472