Merge pull request #1703 from gchq/feature/update-forensic-wiki-address

Update forensics wiki address
This commit is contained in:
a3957273 2024-02-03 02:19:54 +00:00 committed by GitHub
commit 91639ee836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 23 additions and 6 deletions

View file

@ -157,9 +157,9 @@ function titleFromWikiLink(urlStr) {
pageTitle = "";
switch (urlObj.host) {
case "forensicswiki.xyz":
case "forensics.wiki":
wikiName = "Forensics Wiki";
pageTitle = urlObj.query.substr(6).replace(/_/g, " "); // Chop off 'title='
pageTitle = Utils.toTitleCase(urlObj.path.replace(/\//g, "").replace(/_/g, " "));
break;
case "wikipedia.org":
wikiName = "Wikipedia";