FHIR Chat · links to anchors · IG creation

Stream: IG creation

Topic: links to anchors


view this post on Zulip Eric Haas (Nov 24 2020 at 20:04):

These relative links are causing link errors in US Core and I cannot figure out why. If you click on them they resolve and the html is correct. I suspect the anchor is messing up the tool.

The link 'StructureDefinition-us-core-organization.html#notes' for "See Change Here" cannot be resolved (valid targets: 94 targets)
index.html#/html/body/div/div/div/div/div/div/ol/li/p/a at Line 419, column 137 error   The link 'StructureDefinition-us-core-patient.html#notes' for "See Change Here" cannot be resolved (valid targets: 127 targets)

here is a screenshot confirming the defining the anchor id="notes"

image.png

There are other places where I removed the anchor due to link errors but I would prefer to point to the anchor and not the page.

view this post on Zulip Sarah Gaunt (Nov 24 2020 at 20:06):

I had the same issue - I was trying to link to an anchor for a group on the artifact index page. I gave up and just removed the anchor and linked to the ful page. :sad:

view this post on Zulip Grahame Grieve (Nov 24 2020 at 20:08):

you need to create an actual anchor

view this post on Zulip Grahame Grieve (Nov 24 2020 at 20:08):

<a name="notes"> </a>

view this post on Zulip Eric Haas (Nov 24 2020 at 20:13):

OK I guess that will have to wait and be a PR to the templates

view this post on Zulip Lloyd McKenzie (Nov 24 2020 at 23:31):

A change to the templates?

view this post on Zulip Eric Haas (Nov 25 2020 at 02:26):

the notes and intro headers are not anchored like this. they only have a id="notes" in the h3 node

view this post on Zulip Lloyd McKenzie (Nov 25 2020 at 23:31):

Can you raise an issue against the Git project @Eric Haas ?


Last updated: Apr 12 2022 at 19:14 UTC