Fix back button to index page

Problem is described in #1278.

This allows us to continue to use the name of the chapter for `prev_section`, which makes a lot of sense.