Skip to content

Commit

Permalink
Add a check to avoid duplicate names in path
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters committed Oct 9, 2023
1 parent cbba729 commit c4292cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public PathProvider rpPathProvider() {
return new RelativePathProvider(servletContext) {
@Override
public String getApplicationBasePath() {
if (super.getApplicationBasePath().contains(applicationName)) {
return super.getApplicationBasePath();
}
return "/" + applicationName + super.getApplicationBasePath();
}
};
Expand Down

0 comments on commit c4292cd

Please sign in to comment.