Skip to content

Commit 4780177

Browse files
author
github-actions
committed
[docs] @Breakthrough: Generate Website
Commit: 3632eca
1 parent f0b50c5 commit 4780177

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

404.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ <h1 id="404-title">Page Not Found</h1>
113113
var pageTitle = document.getElementById('404-title');
114114
var pageBody = document.getElementById('404-body');
115115

116+
// The canonical form is "issues" but we allow "issue" as well.
116117
const TARGETS = [ '/issue', '/issues', '/issue/', '/issues/' ];
117118
for (const target of TARGETS) {
118119
if (path === target) {
119120
pageTitle.innerText = 'Redirecting...';
120-
pageBody.innerText = 'Redirecting to GitHub issues...';
121-
window.location.href = 'https://github.com/Breakthrough/PySceneDetect/issues/';
121+
const url = 'https://github.com/Breakthrough/PySceneDetect/issues/';
122+
pageBody.innerHTML = 'Redirecting to <a href="' + url + '">GitHub issues...</a>';
123+
window.location.href = url;
122124
return;
123125
}
124126
}
@@ -129,8 +131,8 @@ <h1 id="404-title">Page Not Found</h1>
129131
var issueNumber = path.substring(prefix.length);
130132
if (issueNumber) {
131133
pageTitle.innerText = 'Redirecting...';
132-
pageBody.innerText = 'Redirecting to issue #' + issueNumber + ' on GitHub...';
133134
var newUrl = 'https://github.com/Breakthrough/PySceneDetect/issues/' + issueNumber;
135+
pageBody.innerHTML = 'Redirecting to <a href="' + newUrl + '">issue #' + issueNumber + ' on GitHub...</a>';
134136
window.location.href = newUrl;
135137
return;
136138
}

sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)