Swap url for uri