I need to create via HTML a ToC - basically something like:
- First item
- Second item ...
I know that I can create e.g. First item as <h1 id="first">First item</h1> and than in the ToC something like
<li><a href="#first">First item</a></li>
<li><a href="#second">Second item</a></li>
The main problem I am facing is that the <base href="myService"> is set. Therefore the link to the own page won't work by default since the base-href is taken into account.
Is there a proper way to generate a ToC with set base href?