FHIR Chat · bad link to profile page anchor · IG creation

Stream: IG creation

Topic: bad link to profile page anchor


view this post on Zulip Eric Haas (Feb 27 2019 at 01:21):

The IG validator produces the following bad link error for an internal reference
to an page anchor in one of my profiles.

yet I can copy the link right from the anchor icon :
[baseurl]StructureDefinition-argo-questionnaire.html#quick-start and the link
resolves in my local copy and browser.

StructureDefinition-argo-questionnaire-valueset.html#/html/head/body/div/div/div/div/div/div/hr/p/a
at Line 751, column 15  error   The link
'StructureDefinition-argo-questionnaire.html#quick-start' for "Argonaut
Questionnaire Profile Quick Start" cannot be resolved (valid targets:
[page-content-wrapper, mandatory-data-elements-and-terminology, tbl-snap-inner,
Questionnaire.item.text, Questionnaire, Questionnaire.item.extension,
Questionnaire.identifier, Questionnaire.experimental,
Questionnaire.item.option.extension, copy-button, Questionnaire.item.option.id,
Questionnaire.item.type, Questionnaire.copyright, Questionnaire.subjectType,
all-tbl-diff, Questionnaire.version, Questionnaire.item.prefix,
Questionnaire.useContext, Questionnaire.id, Questionnaire.contact,
Questionnaire.item.option.value_x_, Questionnaire.item.enableWhen.hasAnswer,
tabs-summ, tbl-summ, stripe, segment-footer, Questionnaire.item.item,
Questionnaire.contained, Questionnaire.item.linkId,
Questionnaire.item.enableWhen.extension, Questionnaire.modifierExtension,
Questionnaire.item.enableWhen.answer_x_, all-tbl-snap-inner, segment-header,
profile, Questionnaire.code, Questionnaire.effectivePeriod, tabs-diff,
all-tbl-summ, Questionnaire.status, tbl-diff, Questionnaire.description,
Questionnaire.title, all-tbl-summ-inner, examples, Questionnaire.item.repeats,
Questionnaire.item.option.modifierExtension, tabs-all, back-to-top,
tbl-diff-inner, Questionnaire.item.enableWhen.question, segment-navbar,
Questionnaire.language, Questionnaire.item.code, publish-box,
Questionnaire.publisher, tabs, segment-post-footer,
Questionnaire.item.initial_x_, all-tbl-snap, search, downloads,
Questionnaire.jurisdiction, Questionnaire.item.maxLength,
Questionnaire.extension, tabs-snap, introduction, tbl-snap, Questionnaire.text,
Questionnaire.item.definition, summary, Questionnaire.item.enableWhen,
Questionnaire.item.enableWhen.id, scope-and-usage, Questionnaire.url,
Questionnaire.item.required, Questionnaire.item.options, Questionnaire.date,
Questionnaire.item.option, Questionnaire.item.modifierExtension,
Questionnaire.item.enableWhen.modifierExtension, Questionnaire.item.readOnly,
Questionnaire.name, Questionnaire.meta, Questionnaire.implicitRules,
Questionnaire.purpose, all-tbl-diff-inner, Questionnaire.approvalDate,
Questionnaire.item.id, Questionnaire.item, Questionnaire.lastReviewDate,
project-status])

here is the xhtml:

<a name="search">
</a>
<h3 id="quick-start">QuickStart<a class="anchorjs-link " href="#quick-start" aria-label="Anchor"data-anchorjs-icon="" style="font: 1em/1 anchorjs-icons; padding-left:0.375em;">
</a>
</h3>

note the Jekyll generated id is what the link is referencing not the anchor tag
above it. does link validator validate these?

view this post on Zulip Grahame Grieve (Mar 03 2019 at 20:00):

is this sorted?

view this post on Zulip Eric Haas (Mar 03 2019 at 23:53):

nope.

view this post on Zulip Grahame Grieve (Mar 04 2019 at 00:59):

@Eric Haas where is the source for this?

view this post on Zulip Eric Haas (Mar 04 2019 at 02:06):

won't be able to post example til later maybe tomorrow

view this post on Zulip Eric Haas (Mar 04 2019 at 17:53):

OK so here an example: https://healthedata1.github.io/IG-Template2/StructureDefinition-template-profile-on-profile.html#quick-start

and if you look at the qa.html : (last line) you will see the bad link error. https://healthedata1.github.io/IG-Template2/qa.html#internal

source files: here:

https://github.com/Healthedata1/IG-Template2

I don't have this ig set up for the autopublisher but I can do that if needed


Last updated: Apr 12 2022 at 19:14 UTC