Skip to content

Commit

Permalink
fix url join
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Jul 27, 2023
1 parent f5eb15e commit 9930747
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useServerSentEvents = (options: ServerSentEventsOptions) => {
const language = useGettext()
const accessToken = useAccessToken({ store })
const setupServerSentEvents = async () => {
await fetchEventSource(`${configurationManager.serverUrl}${options.url}`, {
await fetchEventSource(new URL(options.url, configurationManager.serverUrl).href, {
headers: {
Authorization: `Bearer ${accessToken.value}`,
'Accept-Language': unref(language).current,
Expand Down

0 comments on commit 9930747

Please sign in to comment.