ryohek %!s(int64=5) %!d(string=hai) anos
pai
achega
b46c745bb6
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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}`);
   }