Просмотр исходного кода

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

Taichi Masuyama 3 лет назад
Родитель
Сommit
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,