Yuki Takei 5 лет назад
Родитель
Сommit
02c14c0db5
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/client/js/components/Page/CopyDropdown.jsx

+ 3 - 3
src/client/js/components/Page/CopyDropdown.jsx

@@ -45,7 +45,7 @@ class CopyDropdown extends React.Component {
       search, hash,
     } = window.location;
 
-    return `${pagePath}${search}${hash}`;
+    return decodeURI(`${pagePath}${search}${hash}`);
   }
 
   generatePagePathUrl() {
@@ -64,7 +64,7 @@ class CopyDropdown extends React.Component {
     const {
       origin, search, hash,
     } = location;
-    return `${origin}/${pageId}${search}${hash}`;
+    return decodeURI(`${origin}/${pageId}${search}${hash}`);
   }
 
   generateMarkdownLink() {
@@ -73,7 +73,7 @@ class CopyDropdown extends React.Component {
       search, hash,
     } = window.location;
 
-    const label = `${pagePath}${search}${hash}`;
+    const label = decodeURI(`${pagePath}${search}${hash}`);
     const permalink = this.generatePermalink();
 
     return `[${label}](${permalink})`;