diff --git a/examples.html b/examples.html index 26804dd5..6317fe34 100644 --- a/examples.html +++ b/examples.html @@ -285,7 +285,7 @@ iframe.src = path; if (codeButton) { - codeButton.href = `https://github.com/sparkjsdev/spark/blob/main${path}`; + codeButton.href = new URL(`https://github.com/sparkjsdev/spark/blob/main/examples/${path}`).toString(); } if (fullPageButton) { @@ -531,4 +531,4 @@ - \ No newline at end of file +