📌자세한 설명 https://hasudoki.tistory.com/entry/Javascript-URL%ED%8E%98%EC%9D%B4%EC%A7%80%EB%A5%BC-Location-Redirect-Reload-%ED%86%B5%ED%95%B4-%EC%82%B4%ED%8E%B4%EB%B3%B4%EC%9E%90
원글(https://betterprogramming.pub/redirect-refresh-and-access-the-url-of-the-current-page-in-javascript-3d9160e8317e)