This ticket is a follow-up of the comment received from the performance review https://phabricator.wikimedia.org/T307736:
The TOC links should probably use cannonical /wiki/X#Y URLs instead of ?title=X#Y URLS. This grants better CDN caching.
AC:
- Change the link generated for the sections to be /wiki/X#Y format instead than ?title=x#y