Fix handling of DYKs

Problem centred on overwriting of $pageName inherited from previous
code changes.