Przeglądaj źródła

81076 presentation modal

Mao 4 lat temu
rodzic
commit
917dce7aa0

+ 2 - 1
packages/app/src/components/Page/PageManagement.jsx

@@ -29,6 +29,7 @@ const LegacyPageManagemenet = (props) => {
   const [isPageTemplateModalShown, setIsPageTempleteModalShown] = useState(false);
   const [isPageTemplateModalShown, setIsPageTempleteModalShown] = useState(false);
   const [isPageDeleteModalShown, setIsPageDeleteModalShown] = useState(false);
   const [isPageDeleteModalShown, setIsPageDeleteModalShown] = useState(false);
   const [isPagePresentationModalShown, setIsPagePresentationModalShown] = useState(false);
   const [isPagePresentationModalShown, setIsPagePresentationModalShown] = useState(false);
+  const presentationHref = new URL(urljoin(window.location.origin, path, '?presentation=1')).href;
 
 
   function openPageRenameModalHandler() {
   function openPageRenameModalHandler() {
     setIsPageRenameModalShown(true);
     setIsPageRenameModalShown(true);
@@ -188,7 +189,7 @@ const LegacyPageManagemenet = (props) => {
         <PagePresentationModal
         <PagePresentationModal
           isOpen={isPagePresentationModalShown}
           isOpen={isPagePresentationModalShown}
           onClose={closePagePresentationModalHandler}
           onClose={closePagePresentationModalHandler}
-          href="?presentation=1"
+          href={presentationHref}
         />
         />
       </>
       </>
     );
     );