Tony, this is a really great solution you have reached. Wonderful insight and connecting the dots to use a <<qualify>> macro!
I tested it with this, and transcluded it multiple times. As you said, it works! Navigates to the correct link of the correct tiddler. <h1 id=<<qualify #Heading-h1>> > <<qualify #Heading-h1>> </h1><br><br><br><br><br><br><br><br><br><br> <h2 id=<<qualify #Heading-h2>> > <<qualify #Heading-h2>> </h2><br><br><br><br><br><br><br><br><br><br> <a href=<<qualify ##Heading-h1>> >Link to My Heading h1</a><br><br> <a href=<<qualify ##Heading-h2>> >Link to My Heading h2</a> Now I will have to do some rewriting on the Github Pull request #3836 <https://github.com/Jermolene/TiddlyWiki5/pull/3836> Regards. On Friday, March 8, 2019 at 10:01:38 AM UTC+7, TonyM wrote: > > S S , > > I had a hunch that paid off. If we want the ID to be unique to tiddler use > qualify and it seems to work. > > *This should solve many of the aforementioned problems.* > > Eg in TOC > > <a href=<<qualify ##h1>> >Link to My Heading</a> > > > In Text > > <h1 id=<<qualify #h1>> > My Heading</h1> > > Also the following works to help users nest headings > <a href=<<qualify ##h1.1>> >Link to My Heading 1.1</a> > > <h1 id=<<qualify #h1.1>> > My Heading h1.1</h1> > > > > > Notes: > > - There is not current tiddler in the sidebar so this may not work > there but a hardcoded number could be used > - As ID's can be defined in CSS (Am I correct?) perhaps we can use the > new wikitext in CSS features to automatically generate ID's that qualify > them automatically. > > I am confident there is more to be discovered. > > Regards > Tony > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/82ef9693-2ce3-4d07-84b9-9a3677ccec92%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.