diff --git a/src/main/java/org/protege/xmlcatalog/redirect/UriRedirectVisitor.java b/src/main/java/org/protege/xmlcatalog/redirect/UriRedirectVisitor.java index b380b98..e4b21fa 100644 --- a/src/main/java/org/protege/xmlcatalog/redirect/UriRedirectVisitor.java +++ b/src/main/java/org/protege/xmlcatalog/redirect/UriRedirectVisitor.java @@ -59,7 +59,7 @@ public void visit(RewriteUriEntry entry) { try { String redirectedUri = redirect == null ? null : redirect.toString(); if(redirectedUri == null){ - return; + redirectedUri = original.toString(); } if (redirectedUri.startsWith(entry.getUriStartString()) && entry.getUriStartString().length() > rewriteBestSize) { String suffix = redirectedUri.substring(entry.getUriStartString().length());