We only handle branch selection for repo home and commits pages, so the redirection URL is based on PageIsCommits