Fix #168716 (wrong behaviour for disabled chapters and unified urls)