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 authored and pedropintosilva committed Feb 13, 2025
1 parent 20e836c commit 04d6ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { getRootUrl, generateUrl } from '@nextcloud/router'
import { getRootUrl, generateUrl, getBaseUrl } from '@nextcloud/router'
import { getSharingToken } from '@nextcloud/sharing/public'
import { languageToBCP47 } from './index.js'
import Config from './../services/config.tsx'
Expand Down Expand Up @@ -82,7 +82,7 @@ const getDocumentUrlForFile = (fileDir, fileId) => {
}

export const getConfigFileUrl = () => {
return getCallbackBaseUrl() + generateUrl('apps/richdocuments/wopi/settings')
return getBaseUrl() + generateUrl('apps/richdocuments/wopi/settings')
}

const getNextcloudUrl = () => {
Expand Down

0 comments on commit 04d6ce7

Please sign in to comment.