Adds setting to remove domain from search result URLs, creating relative links.
This creates an option to remove the domain from search result URLs. This creates relative links, which are useful on non-production hostnames. Otherwise, all search result links point to the production site.
This also fixes an issue finding the apiendpointurl
configuration option in the settings, due to a bad config key name.