Only override title when needed for courses view.
Merge pull request #6756 from openscholar/2024-fix

Only override title when needed for courses view.