Fix chapter linking by adding the file name as a parameter