redirect to about.html

This commit is contained in:
NAS\NASPC
2026-06-01 16:45:26 +07:00
parent 8dad4fd45b
commit 66aaefebe9
32 changed files with 13022 additions and 266 deletions
+14
View File
@@ -0,0 +1,14 @@
const fs = require('fs');
const path = 'd:\\website_sisvietnam_moi\\website_sisvietnam.vn\\sisvietnamvn\\src\\main\\resources\\templates\\about.html';
let content = fs.readFileSync(path, 'utf8');
// Replace UMass Undergraduate specific files with the ones from the main UMass Amherst folder if we want, or just leave it.
// But since the folder was created while bootRun is active, let's use a gradle command to process resources.
// However, fixing the image links is important.
content = content.replace(/\/sites\/default\/files\/styles\/[^"'\s]+/gi, '/images/LogoSIS.svg');
// Also fix manifest 404
content = content.replace(/<link rel="manifest" href="[^"]+">/gi, '');
fs.writeFileSync(path, content, 'utf8');