Use path instead of url.

see #574