#6494 Draft of fix HtmlPages method