From 682a63e27fa0a9144e97cd815daeb559423c338c Mon Sep 17 00:00:00 2001 From: Mohammed <88824957+majhcc@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:27:04 +0400 Subject: [PATCH] Update --- islands/Editor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/islands/Editor.tsx b/islands/Editor.tsx index 3f9514c..af4790d 100644 --- a/islands/Editor.tsx +++ b/islands/Editor.tsx @@ -59,7 +59,9 @@ export default function Editor(props: EditorProps) { if (isPass) { let courseSlug: string; - if (props.slug.includes("/")) { + if (props.slug.includes("\\")) { + courseSlug = props.slug + } else if (props.slug.includes("/")) { courseSlug = props.slug.split("/")[0] + "\\" + props.slug.split("/")[1] } else { courseSlug = props.slug;