Skip to content

Commit

Permalink
fix(url): correct WOPI settings URL to prevent duplicate nextcloud
Browse files Browse the repository at this point in the history
Signed-off-by: codewithvk <[email protected]>
  • Loading branch information
codewithvk committed Feb 9, 2025
1 parent 8bfc465 commit f235e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const getDocumentUrlForFile = (fileDir, fileId) => {
}

export const getConfigFileUrl = () => {
return getCallbackBaseUrl() + generateUrl('apps/richdocuments/wopi/settings')
return window.location.protocol + '//' + window.location.host + generateUrl('apps/richdocuments/wopi/settings')
}

const getNextcloudUrl = () => {
Expand Down

0 comments on commit f235e9c

Please sign in to comment.