Fixes #6049 - fixes issue with incorrect page titles, BZ 1099469
Merge pull request #4210 from cfouant/titles

Fixes #6049 - fixes issue with incorrect page titles, BZ 1099469