Use pathname for url guessing