Change ajax url to be based on request url