#21 -- Fix redirect and remove

This commit is contained in:
Anton Romanov 2025-04-02 23:59:36 +04:00
parent 07fcbce47b
commit e7ef4099fa

View File

@ -36,12 +36,12 @@ public class ReportPeriodController {
@PostMapping(value = "saveReportPeriod", params = "save")
public String saveReportPeriods(ReportPeriod reportPeriod) {
reportPeriodService.save(reportPeriod);
return "redirect: admin/reportPeriodList";
return "redirect:/admin/reportPeriodList";
}
@PostMapping(value = "saveReportPeriod", params = "delete")
public String delete(ReportPeriod reportPeriod) {
reportPeriodService.save(reportPeriod);
return "redirect: admin/reportPeriodList";
reportPeriodService.delete(reportPeriod);
return "redirect:/admin/reportPeriodList";
}
}