fix /reference/ redirects, fixes #625