Skip to content

Commit 2270b41

Browse files
committed
fix: 전문성 정보 수정 시 내 멘토링 페이지로 리다이렉트 (#134)
1 parent 2a4bd3d commit 2270b41

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/knoc/senior/controller/SeniorApplyController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public String updateProfile(@AuthenticationPrincipal UserDetails userDetails,
106106
RedirectAttributes redirectAttributes) {
107107
Long memberId = getMemberId(userDetails);
108108
seniorProfileService.updateProfile(memberId, dto);
109-
redirectAttributes.addFlashAttribute("successMessage", "시니어 프로필이 수정되었습니다.");
110-
return "redirect:/senior/profile-update";
109+
return "redirect:/my/dashboard?seniorProfileUpdated=true";
111110
}
112111

113112
@Operation(summary = "이메일 인증 번호 발송",description = "기업 이메일로 인증번호를 발송합니다.")

src/main/resources/templates/my/dashboard/senior.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@
354354
style="background-color: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.35); color: #4ade80; border-radius: 0.9rem; padding: 0.75rem 1.25rem;">
355355
프로필이 업데이트되었습니다.
356356
</div>
357+
<div th:if="${param.seniorProfileUpdated}" class="alert mb-3"
358+
style="background-color: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.35); color: #4ade80; border-radius: 0.9rem; padding: 0.75rem 1.25rem;">
359+
전문성 정보가 업데이트되었습니다.
360+
</div>
357361
<div th:if="${param.profileError}" class="alert mb-3"
358362
style="background-color: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: #f87171; border-radius: 0.9rem; padding: 0.75rem 1.25rem;">
359363
이미 사용 중인 닉네임입니다.

0 commit comments

Comments
 (0)