Fix #456, this splits the url correctly into parts before processing