We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3c7924 commit ef708edCopy full SHA for ef708ed
script.js
@@ -276,9 +276,10 @@ async function renderProblem() {
276
!f.name.includes('.shortest.')
277
);
278
279
- // Check if has HTML - if so, redirect
+ // Check if has HTML - if so, redirect to GitHub raw content
280
if (htmlFiles.length > 0) {
281
- window.location.href = `${pathStr}/${htmlFiles[0].name}`;
+ const rawUrl = `https://raw.githubusercontent.com/${getRepoPath()}/main/${pathStr}/${htmlFiles[0].name}`;
282
+ window.location.href = rawUrl;
283
return;
284
}
285
0 commit comments