2
0
Эх сурвалжийг харах

ensure to decode page path

Yuki Takei 7 жил өмнө
parent
commit
f2aae3d30b

+ 1 - 1
src/client/js/components/PageList/PagePath.js

@@ -29,7 +29,7 @@ export default class PagePath extends React.Component {
 
   render() {
     const page = this.props.page;
-    const pagePath = page.path.replace(this.props.excludePathString.replace(/^\//, ''), '');
+    const pagePath = decodeURIComponent(page.path.replace(this.props.excludePathString.replace(/^\//, ''), ''));
     const shortPath = this.getShortPath(pagePath);
     const shortPathEscaped = escapeStringRegexp(shortPath);
     const pathPrefix = pagePath.replace(new RegExp(shortPathEscaped + '(/)?$'), '');