take full url and output path with qs