Skip to content

Commit

Permalink
Merge pull request #17312 from geoand/not-found-slash
Browse files Browse the repository at this point in the history
Fix double slash issue in not found page
  • Loading branch information
Sanne authored May 18, 2021
2 parents d8cdcfe + 2115f5e commit 4e15ff7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static List<ResourceDescription> fromBoundResourceInvokers(
if (basePath.endsWith("/")) {
fullPath += subPath;
} else {
fullPath = basePath + "/" + subPath;
fullPath = basePath + (subPath.startsWith("/") ? "" : "/") + subPath;
}
}
description.addMethod(fullPath, method);
Expand Down

0 comments on commit 4e15ff7

Please sign in to comment.