Page number in link

This commit is contained in:
Daniel Kluge 2022-07-29 14:26:22 +02:00
parent ee79f1fe0e
commit 3bd7eaefde

View File

@ -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 });