한 번만 리ㄹ드 처리하기 위해서 아래 처럼 URL history 를 바꾸는 방법을 쓸 수 있다.

 

보기1.

var stateObj = { foo: "bar" };
history.pushState(stateObj, "page 2", "bar.html");

 

보기2.

history.pushState('', 'new title', '/abc/def/ghi.html');

 

참고:

https://developer.mozilla.org/en-US/docs/Web/API/History_API#Adding_and_modifying_history_entries