From 3bd7eaefde0772936d32a859c3d881b68b357733 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Fri, 29 Jul 2022 14:26:22 +0200 Subject: [PATCH] Page number in link --- components/ProjectModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index 86ab7bc..fa3a00a 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -62,7 +62,7 @@ const ProjectModal: NextPage = () => { const onContentReady = () => { const selected = window.location.hash.split("/"); - if (selected[2]) cmdContext.executeCommand(`project ${selected[2]}`); + if (selected.length > 2) cmdContext.executeCommand(`project ${selected[2]}${selected[3] ? ` ${selected[3]}` : ""}`); }; updateCmdCallbacks({ setModalVisible: setVisible, setModalContent, setModalHTML: setHTMLContent });