handle market urls.