Fixes an issue where page index links are broken.