Table of contents element selected correctly in SPA context