Use window.location.pathname