forked from Qortal/qortal
Fix website sub-folder rendering 404
This commit is contained in:
parent
fd8d720946
commit
cc8cdcd93a
@ -127,6 +127,11 @@ public class ArbitraryDataRenderer {
|
|||||||
String filename = this.getFilename(unzippedPath, inPath);
|
String filename = this.getFilename(unzippedPath, inPath);
|
||||||
Path filePath = Paths.get(unzippedPath, filename);
|
Path filePath = Paths.get(unzippedPath, filename);
|
||||||
boolean usingCustomRouting = false;
|
boolean usingCustomRouting = false;
|
||||||
|
if (Files.isDirectory(filePath) && (!inPath.endsWith("/"))) {
|
||||||
|
inPath = inPath + "/";
|
||||||
|
filename = this.getFilename(unzippedPath, inPath);
|
||||||
|
filePath = Paths.get(unzippedPath, filename);
|
||||||
|
}
|
||||||
|
|
||||||
// If the file doesn't exist, we may need to route the request elsewhere, or cleanup
|
// If the file doesn't exist, we may need to route the request elsewhere, or cleanup
|
||||||
if (!Files.exists(filePath)) {
|
if (!Files.exists(filePath)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user