Skip to content

Commit 8f1021b

Browse files
committed
Merge branch 'fix-assistant-web-frontend-url' into 'develop'
Fix assistant calling correct URL See merge request baserow/baserow!3799
2 parents f35d353 + e5fd02f commit 8f1021b

File tree

1 file changed

+2
-1
lines changed
  • enterprise/web-frontend/modules/baserow_enterprise/services

1 file changed

+2
-1
lines changed

enterprise/web-frontend/modules/baserow_enterprise/services/assistant.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* root URL when making requests to the AI Assistant endpoints.
55
*/
66
function getAssistantBaseURL(client) {
7-
return client.defaults.baseURL.split('/api')[0]
7+
const url = new URL(client.defaults.baseURL)
8+
return url.origin
89
}
910

1011
export default (client) => {

0 commit comments

Comments
 (0)