Fix regression with page titles and add a regression test to catch in the future.