Skip to content

Commit

Permalink
redirect all URLs, not only UriEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir committed Oct 12, 2017
1 parent d949199 commit e570bbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e570bbf

Please sign in to comment.