FHIR Chat · Invalid URL error (backslashes) · IG creation

Stream: IG creation

Topic: Invalid URL error (backslashes)


view this post on Zulip Rick Geimer (Oct 26 2021 at 16:52):

Anybody else encounter this error before?

The URL is not valid because '(URL contains Invalid Characters ([\]))' :
file://C:\Users\me\Downloads\myig\output/StructureDefinition-myprofile.html

(I changed some directory names above to protect the innocent)

The IG in question is a non-HL7 IG that has a dependency on another non-HL7 IG. Both are on my local file system. The dependency resolved, but I get a bunch of these bad links in the HTML. I am running this on Windows 10, and I guess that's why the backslashes appear in the file path.

view this post on Zulip Jean Duteau (Oct 26 2021 at 17:03):

i think this is one of those things that Grahame talked about that the publisher doesn't handle when you run it locally.

view this post on Zulip Grahame Grieve (Oct 26 2021 at 18:34):

yep you'll get that working locally, but they'll resolve when you publish

view this post on Zulip Rick Geimer (Oct 27 2021 at 15:29):

The issue here is that these are "private" IGs that will never be published through HL7. My workaround for now is to manually search/replace the hard coded file absolute file path in all HTML files with a relative path (i.e. change "file://C:\Users\me\Downloads\myig\output" to "../../myig/output".

view this post on Zulip Rick Geimer (Oct 27 2021 at 15:30):

But that still leaves hundreds of those errors in the qa.html file.

view this post on Zulip Grahame Grieve (Oct 27 2021 at 18:11):

The issue here is that these are "private" IGs that will never be published through HL7

I don't see how that's related. you still have to do the publish step


Last updated: Apr 12 2022 at 19:14 UTC