Changes to URLs in links and API calls to support clean URLs