Przeglądaj źródła

refactor uri decode

Yuken Tezuka 3 lat temu
rodzic
commit
224fe7cd5e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/pages/utils/commons.ts

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

@@ -36,7 +36,7 @@ export const getServerSideCommonProps: GetServerSideProps<CommonProps> = async(c
   } = crowi;
   } = crowi;
 
 
   const url = new URL(context.resolvedUrl, 'http://example.com');
   const url = new URL(context.resolvedUrl, 'http://example.com');
-  const currentPathname = decodeURI(url.pathname);
+  const currentPathname = decodeURIComponent(url.pathname);
 
 
   const isMaintenanceMode = appService.isMaintenanceMode();
   const isMaintenanceMode = appService.isMaintenanceMode();