fix: 로그인 리다이렉트 통합 및 캐시 버스팅 정리

- config.js loginPage를 /index.html에서 /login(SSO)으로 변경
- navigation.js, load-navbar.js에 redirect 파라미터 추가
- 8개 JS 파일의 하드코딩된 '/login' → window.getLoginUrl() 전환
- 로그아웃 시 clearSSOAuth() 호출 추가 (SSO 쿠키 삭제)
- api-base.js v=2→v=3 (SW 캐시 해제 코드 통합)
- TBM 모듈 버전 쿼리스트링 통일 (tbm.html, tbm-mobile.html)
- dashboard.html SW 캐시 해제 인라인 코드 제거 (api-base.js에서 처리)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-05 09:56:08 +09:00
parent 4388628788
commit 6f1efdb03c
52 changed files with 118 additions and 99 deletions

View File

@@ -13,8 +13,9 @@ function redirect(url) {
* 로그인 페이지로 리디렉션합니다.
*/
export function redirectToLogin() {
console.log(`🔄 로그인 페이지로 이동합니다: ${config.paths.loginPage}`);
redirect(config.paths.loginPage);
const loginUrl = config.paths.loginPage + '?redirect=' + encodeURIComponent(window.location.href);
console.log(`🔄 로그인 페이지로 이동합니다: ${loginUrl}`);
redirect(loginUrl);
}
/**