Fix double-slash URL in hivesense-api requests

Summary

  • Remove explicit urlPath from hivesense-api configuration to match the pattern used by hafah-api and hivemind-api
  • This prevents double-slash URLs (e.g., https://api.hive.blog//hivesense-api/) that occur when the endpoint URL has a trailing slash and wax adds a separator before the urlPath

Root Cause

The hivesense-api configuration had an explicit urlPath: "hivesense-api/" while hafah-api and hivemind-api don't have a top-level urlPath. When wax constructs URLs, it adds a separator between the endpoint URL and the urlPath. If the endpoint URL already has a trailing slash (e.g., https://api.hive.blog/), this results in a double-slash.

Fix

Without the explicit urlPath, wax uses the object key name 'hivesense-api' as the base path, which handles endpoint URLs consistently regardless of trailing slashes - the same way it works for hafah-api and hivemind-api.

Test plan

  • Verify hivesense-api requests work correctly with endpoints that have trailing slashes
  • Verify hivesense-api requests work correctly with endpoints that don't have trailing slashes
  • Verify AI search functionality works on blog.openhive.network

Merge request reports

Loading