パスなら``location.pathname``