FHIR Chat · IG Generation URL issues · shorthand

Stream: shorthand

Topic: IG Generation URL issues


view this post on Zulip Diana_Ovelgoenne (Jun 24 2021 at 12:35):

Hi all,
I am using Shorthand with the IGPublisher for creating my IG and while checking that everything works, I found that the IG is stating for the canonicals the following syntaxis: https://myserver/myIG/StructureDefinition/myProfile, but the URLs of the generated pages are actually on the form of https://myserver/myIG/StructureDefinition**-**myProfile.html.
Is there a way to make these match while the IG is generated?

view this post on Zulip Chris Moesel (Jun 24 2021 at 12:39):

Hi @Diana_Ovelgoenne -- this is just the way the IG Publisher works. I don't think you can do much to affect that (although @Jose Costa Teixeira can correct me if I'm wrong). If you are working on an HL7 IG, then I believe that the HL7 team will do the proper configuration to ensure that canonicals redirect to the real pages upon publication. If you're publishing on your own somewhere, you may need to put those mechanisms in place yourself if you want canonicals to redirect to their respective pages. If you dig around a bit in the #IG creation stream, I think there are a few threads on this topic.

view this post on Zulip Chris Moesel (Jun 24 2021 at 12:40):

BTW -- having canonicals resolve to real pages/documents is very much encouraged but it is not required.

view this post on Zulip Jose Costa Teixeira (Jun 24 2021 at 12:41):

Correct @Chris Moesel . url/StructureDefinition/myProfile is the FHIR-like reference so it's good for URLs, but the IG Publisher follows a flat file structure.

view this post on Zulip Jose Costa Teixeira (Jun 24 2021 at 12:41):

@Diana_Ovelgoenne is there a reason you'd need that? I can't see why

view this post on Zulip Jose Costa Teixeira (Jun 24 2021 at 12:42):

The url redirecting properly is, I believe, a consequence of the "final" publication step.

view this post on Zulip Jose Costa Teixeira (Jun 24 2021 at 12:42):

I don't think you need to worry about that

view this post on Zulip Diana_Ovelgoenne (Jun 24 2021 at 12:59):

@Jose Costa Teixeira yes, the redirection works good, I am doing an svg with an object model and that's when i figured it out, as I was copying the canonicals and there of course there's no redirection. So seems I just need to pay attention to change the links in the diagram. @Chris Moesel thanks for the link of the stream.


Last updated: Apr 12 2022 at 19:14 UTC