Split out path and query parameters for Ajax refreshes.