chapter url handling fixes