minor improvements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user