Added fallback to pageName to title if not specified.