Checking `document.title` like this is brittle. It would be better to check the current document's fullPath.