minor improvements

This commit is contained in:
2025-08-14 08:43:54 +02:00
parent 6b2a437539
commit 3b7c292e32
4 changed files with 21 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ public class CompanyLegacy extends BaseHandler {
@Override
public boolean doGet(Path path, HttpExchange ex) throws IOException {
if (path.empty()) return sendRedirect(ex, url(ex).replaceAll("/legacy/.*",""));
if (path.empty()) return sendRedirect(ex, url(ex).replaceAll("/legacy/","/"));
return super.doGet(path, ex);
}

View File

@@ -39,6 +39,7 @@ public class NotesLegacy extends BaseHandler {
@Override
public boolean doGet(Path path, HttpExchange ex) throws IOException {
if (path.empty()) return sendRedirect(ex, url(ex).replaceAll("/legacy/","/"));
return super.doGet(path, ex);
}

View File

@@ -38,7 +38,7 @@ public class ProjectLegacy extends BaseHandler {
@Override
public boolean doGet(Path path, HttpExchange ex) throws IOException {
if (path.empty()) return sendRedirect(ex, url(ex).replaceAll("/legacy/.*",""));
if (path.empty()) return sendRedirect(ex, url(ex).replaceAll("/legacy/","/"));
return super.doGet(path, ex);
}