Fixed the long-out-of-date title code, which generates a title for the current page based on its URL.