Fix index link in pre/next on lang pages

Fixes the link back to index on the pre/next of the first/last pages on language pages. :cake: