Commit e9fb6e68 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Import: Fix case where path to load is empty and root path is not

parent 4c24764f
......@@ -37,7 +37,8 @@
if (path_to_load && !relativePath.startsWith("/") &&
!path_to_load.endsWith("/")) {
end_url = path_to_load + "/" + relativePath;
} else if (relativePath.startsWith("/") && path_to_load.endsWith("/")) {
} else if (relativePath.startsWith("/") &&
(!path_to_load || path_to_load.endsWith("/"))) {
end_url = path_to_load + relativePath.substring(1);
} else {
end_url = path_to_load + relativePath;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment