/** * URL 관련 팝업 * @author 이호영 * @since 2024.07.15 * @version 1.0 * @see * *
* << 개정이력(Modification Information) >> * * 수정일 수정자 수정내용 * ---------- -------- --------------------------- * 2024.07.15 이호영 최초 생성 * 2020.xx.xx **/ /** * url의 마지막 / 다음 정보만 가져오기 * @returns {String} (예시)http://localhost:8080/web/kakao/sent/selectKakaoSentView.do * 위 url에서 selectKakaoSentView.do 이 부분만 가져온다. */ function fn_G_getLastUrlSegment(){ // 전체 경로 가져오기 const pathname = window.location.pathname; // 경로를 '/'로 분할하여 배열로 만들기 const pathSegments = pathname.split('/'); // 배열의 마지막 요소 가져오기 const lastSegment = pathSegments.pop() || pathSegments.pop(); return lastSegment; }