Adapt url