Skip to content

Commit 9c3eb94

Browse files
Merge pull request #1276 from JorisHeadease/fix/meta-source-link-fallback-order
fix: prioritize special package handlers over meta.source fallback in getPath()
2 parents 71fec72 + 1c99228 commit 9c3eb94

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/SpecMapManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ public String getPath(String url, String def, String rt, String id) throws FHIRE
206206
if (path != null) {
207207
return path;
208208
}
209-
if (def != null) {
210-
return def;
211-
}
212209
if (special != null) {
213210
switch (special) {
214211
case FACADE:
@@ -273,6 +270,9 @@ public String getPath(String url, String def, String rt, String id) throws FHIRE
273270
}
274271
}
275272
}
273+
if (def != null) {
274+
return def;
275+
}
276276
if (url.matches(Constants.URI_REGEX)) {
277277
int cc = 0;
278278
int cursor = url.length()-1;

0 commit comments

Comments
 (0)