|
|
|
|
@ -29,7 +29,8 @@ public class CompanyLegacy extends BaseHandler {
@@ -29,7 +29,8 @@ 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/","/")); |
|
|
|
|
var url = url(ex); |
|
|
|
|
if (path.empty() || url.endsWith("/view")) return sendRedirect(ex, url.replaceAll("/legacy/","/")); |
|
|
|
|
return super.doGet(path, ex); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|