瀏覽代碼

add encodeURI

itizawa 5 年之前
父節點
當前提交
978fa257a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/growi-plugin-lsx/src/client/js/components/LsxPageList/LsxPage.jsx

+ 1 - 1
packages/growi-plugin-lsx/src/client/js/components/LsxPageList/LsxPage.jsx

@@ -83,7 +83,7 @@ export class LsxPage extends React.Component {
     // create PagePath element
     let pagePathNode = <PagePathWrapper pagePath={pageNode.pagePath} isExists={this.state.isExists} />;
     if (this.state.isLinkable) {
-      pagePathNode = <a className="page-list-link" href={pathUtils.removeTrailingSlash(pageNode.pagePath)}>{pagePathNode}</a>;
+      pagePathNode = <a className="page-list-link" href={encodeURI(pathUtils.removeTrailingSlash(pageNode.pagePath))}>{pagePathNode}</a>;
     }
 
     // create PageListMeta element