From f49645894ce7df5e7f5142a2e3b61b0f02af379c Mon Sep 17 00:00:00 2001 From: Rob Ellison Date: Wed, 17 May 2023 11:15:49 +0000 Subject: [PATCH] feat: open pad in new tab --- layouts/SlidePage.jsx | 6 +++--- pages/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/SlidePage.jsx b/layouts/SlidePage.jsx index 4ecb9b4b..ea8f6899 100644 --- a/layouts/SlidePage.jsx +++ b/layouts/SlidePage.jsx @@ -73,14 +73,14 @@ function SlidePage({ children, next }) { setMode(MODES.SLIDESHOW); router.push( router.pathname, - `${router.asPath.split("?")[0]}?mode=${MODES.SLIDESHOW}#${currentSlide}`, + `${router.asPath.split("?")[0]}?format=ppt&mode=${MODES.SLIDESHOW}#${currentSlide}`, { shallow: true } ); } else { setMode(MODES.SPEAKER); router.push( router.pathname, - `${router.asPath.split("?")[0]}?mode=${MODES.SPEAKER}#${currentSlide}`, + `${router.asPath.split("?")[0]}?format=ppt&mode=${MODES.SPEAKER}#${currentSlide}`, { shallow: true } ); } @@ -138,7 +138,7 @@ function SlidePage({ children, next }) { useEffect(() => { router.push( `${router.asPath}`, - `${router.asPath.split("?")[0]}?mode=${mode}#${currentSlide}` + `${router.asPath.split("?")[0]}?format=ppt&mode=${mode}#${currentSlide}` ); }, [currentSlide, mode, router.pathname]); diff --git a/pages/index.js b/pages/index.js index 27a6f032..faf7909d 100644 --- a/pages/index.js +++ b/pages/index.js @@ -63,7 +63,7 @@ return ( {/* */} - +