소스 검색

Solved redirect problem

Drowsito 1 개월 전
부모
커밋
f063909b83
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/java/es/uv/saic/web/ProceduresController.java

+ 3 - 1
src/main/java/es/uv/saic/web/ProceduresController.java

@@ -169,6 +169,8 @@ public class ProceduresController {
 	@PostMapping("/procedure/{id}")
 	public String updateInstanciaTasca(Model model, Authentication auth, HttpSession session, @PathVariable BigInteger id, @RequestParam Map<String,String> params, 
 			@RequestParam(required = false) List<MultipartFile> evidencias) throws IllegalStateException, IOException, InterruptedException {
+		model.addAttribute("location", "procedures");
+
 		HashMap<String, Object> response =
                 pc.updateInstanciaTasca(id, params, evidencias, ((Usuari) auth.getPrincipal()).getUsuari());
         
@@ -177,7 +179,7 @@ public class ProceduresController {
 		}
 
 		model.addAllAttributes(response);
-		return "procedures";
+		return "procedure";
 	}