FHIR Chat · Constructing stable links · committers

Stream: committers

Topic: Constructing stable links


view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:16):

One feature of FHIR that users like a lot is the little globe icon to the left of a heading. You can right click on it, copy the location of the header, and email someone the link

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:16):

consider this link:

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:16):

http://hl7-fhir.github.io/location.html#example

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:17):

however, consider this link:

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:17):

http://hl7-fhir.github.io/location.html#8.12.5.1

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:18):

see how that link uses the generated index value in the link - even though it's not persistent. As the content is reorganised, or content is added above it in the page, the location numbers will change. And that won't point at the same thing

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:18):

this is a constant problem for me- people put those links in their tasks, but the task now doesn't point anywhere near the same content as it used to.

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:18):

what's the difference between those two in the source?

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:19):

<a name="example"> </a>
    <h2>Example Location Hierarchy</h2>

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:19):

and

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:19):

    <h3>Positional Searching</h3>

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:20):

note the missing anchor. You, the editor, add the anchor, and if it's there, the generator will use that anchor in preference to the generated section number. But if it's not there, there's no stable link to go by

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:20):

please remember to add the anchors everywhere.

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:21):

this is in reference to the content in [type]-introduction and [type]-notes, and more generally, in any of your edited HTML pages. It does not apply to the new IG publisher, where you're on your own for that stuff anyway

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:23):

and, btw, it must be

<a name="whatever"> </a>

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:23):

not

<a name="whatever"/>

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:24):

I'm sure it's a bug, but all the versions of webkit I've ever tested completely freak out with the second option, and miss the end of the hyperlink.

view this post on Zulip Brian Postlethwaite (Jul 14 2016 at 23:51):

Can this be made into a build warning?

view this post on Zulip Grahame Grieve (Jul 14 2016 at 23:51):

well, I certainly could. How woudl you feel about another 10k warnings?

view this post on Zulip Brian Postlethwaite (Jul 14 2016 at 23:59):

Its that bad?
Then maybe not.

view this post on Zulip Brian Postlethwaite (Jul 14 2016 at 23:59):

Will update the ones I know of.

view this post on Zulip Brian Postlethwaite (Jul 15 2016 at 00:00):

Its any entry in the notes/intro.xml that has a <h?> tag right?

view this post on Zulip Grahame Grieve (Jul 15 2016 at 00:02):

y

view this post on Zulip Grahame Grieve (Jul 15 2016 at 00:03):

I don't know how many it is. It used to be a number like that, but I've been chipping away at it. e.g. while on a call I'll do a search for <h and plough through them

view this post on Zulip John Moehrke (Jul 15 2016 at 14:17):

I think it should be a warning, as it is likely a bad-quality indication.

view this post on Zulip Lloyd McKenzie (Jul 15 2016 at 22:45):

I think it should be an information message. Warnings mean you can't be FMM level 1. Information messages mean you can't be FMM level 3


Last updated: Apr 12 2022 at 19:14 UTC