only support port-based access
-
The plugin has an inherent issue since it only supports port-based access. It does not allow route-based use of Typesense, which is an issue.
public function setupClientCredentials(): void {
$settings = Admin::get_default_settings();
$this->node = ( $settings[‘protocol’] . $settings[‘node’] . ‘:’ . $settings[‘port’] . ‘/’ ?? ” );
$this->admin_api_key = $settings[‘admin_api_key’] ?? ”;
$this->debug_enabled = $settings[‘debug_log’] ?? false;
}
Solution: Have adjusted the code to ensure that the port is only included if the node string does not already contain a forward slash.$this->node = $settings[‘protocol’] . rtrim($settings[‘node’],’/’) . (strpos($settings[‘node’], ‘/’) !== false ? ” : ‘:’ . $settings[‘port’]) . ‘/’;
- You must be logged in to reply to this topic.