Fix API doc page redirect loop