Преглед изворни кода

Use configManager.getConfig('crowi', 'app:siteUrl') instead of appService.getSiteUrl()

Taichi Masuyama пре 3 година
родитељ
комит
30b76292b6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/pages/utils/commons.ts

+ 1 - 1
packages/app/src/pages/utils/commons.ts

@@ -44,7 +44,7 @@ export const getServerSideCommonProps: GetServerSideProps<CommonProps> = async(c
     namespacesRequired: ['translation'],
     currentPathname,
     appTitle: appService.getAppTitle(),
-    siteUrl: appService.getSiteUrl(),
+    siteUrl: configManager.getConfig('crowi', 'app:siteUrl'), // DON'T USE appService.getSiteUrl()
     confidential: appService.getAppConfidential() || '',
     theme: configManager.getConfig('crowi', 'customize:theme'),
     customTitleTemplate: customizeService.customTitleTemplate,