JSFiddle - React, Tailwind, and code Playground

by tchalvakspam

HTML

<base href="http://www.example.com/other-subdirectory">
    <div id='top-of-page' style='height:90%;min-height:20em'>#top-of-page-index</div>
   
    <a href='#top-of-page-index' title='Some title'>Go to an id at the top of page</a> becomes <a href='http://www.example.com/other-subdirectory#top-of-page-index' title='Some title'>Go to the root/base page and it's named anchor, if present</a>
<br>
<br>
<a href='?update=1' title='Some title'>A link to this page</a> becomes <a href='http://www.example.com/other-subdirectory?update=1' title='Some title'>A link to the base tag's page instead</a>
    
    (note that of course since the