I’m trying to define the TOC index items using only the slugs, rather then adding the topic index at the end of the URL - so I can maintain the same TOC index across environments (DEV/PROD).
This appears to work (as it navigates to the correct topic using the slug only), but the current topic is not highlighted in the menu on the left unless I also add the ID to the end of every URL. Is there a workaround for this?
Sorry - I misread your initial message (got DEV and PROD the wrong way round!)..
We built the TOC index (and associated topics) on DEV initially, so wanted an easy way to replicate them to PROD. Now that we have everything working on PROD then yes - we could just restore from PROD to DEV to bring them back in sync.
However, we treat our DEV system more like a sandbox (for experimentation) - rather than a pre-prod staging area - so there is no pressing need to do this now..