apply patch from @sgillies to gh-pages branch - refs #2148