FHIR Chat · Error in navigation menu · IG creation

Stream: IG creation

Topic: Error in navigation menu


view this post on Zulip Noemi Deppenwiese (Oct 18 2019 at 08:40):

In my IG, I adapted the menu.xml file to add some custom Items like this:

 <li class="dropdown">
    <a data-toggle="dropdown" href="#" class="dropdown-toggle">References<b class="caret">
      </b>
    </a>
    <ul class="dropdown-menu">
      <li>
        <a href="mappings.html">Mappings </a>
      </li>
      <li>
        <a href="referencedIgs.html">Referenced IGs</a>
      </li>
    </ul>
  </li>

But, when running the IG Publisher, the final HTML looks like this:

 <li class="dropdown">
    <a data-toggle="dropdown" href="#" class="dropdown-toggle">References<b class="caret">
      </b>
    </a>
    <ul class="dropdown-menu">
      <li>
        <a href="mappings.html">Mappings </a>
      </li>
      <li><a name="889e96f4-7fc5-4edd-84b0-9984a9212462">​</a>
        <a href="referencedIgs.html">Referenced IGs</a>
      </li>
    </ul>
  </li>

Which results in an empty looking entry in the dropdown menu. I have no idea where the <a name="889e96f4-7fc5-4edd-84b0-9984a9212462">​</a> is coming from, can anyone help me? Thanks!

view this post on Zulip Grahame Grieve (Oct 18 2019 at 10:23):

the IG publisher inserts those <a> tags so it can refer to the exact location from qa.html because there's an error with the content at that location.

It's a known effect that it mucks with the menus, but we haven't fixed it because you should fix the underlying error that led to the insertion in the first place

view this post on Zulip Grahame Grieve (Oct 18 2019 at 10:23):

Usually it's a broken link in your menu

view this post on Zulip Noemi Deppenwiese (Oct 18 2019 at 13:53):

It was a broken link... Thanks!


Last updated: Apr 12 2022 at 19:14 UTC