Explorar o código

Merge pull request #2800 from weseek/fix/GW-3869-adjust-parmanent-link

fix/GW-3869-adjust-parmanent-link
Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
20d774c902
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/client/js/components/Page/CopyDropdown.jsx

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

@@ -75,6 +75,7 @@ class CopyDropdown extends React.Component {
   }
 
   generatePermalink() {
+    const { origin } = window.location;
     const { pageId, isShareLinkMode } = this.props;
 
     if (pageId == null) {