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

+ 4 - 1
src/client/js/components/Page/CopyDropdown.jsx

@@ -54,7 +54,10 @@ class CopyDropdown extends React.Component {
   }
 
   generatePagePathWithParams() {
-    const { pagePath } = this.props;
+    const { pagePath, isShareLinkMode } = this.props;
+    if (isShareLinkMode) {
+      return decodeURI(`/${pagePath}`);
+    }
     return decodeURI(`${pagePath}${this.uriParams}`);
   }