diff --git a/assets/js/main.js b/assets/js/main.js
index bb04de6..61c2754 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -1,3 +1,5 @@
+const pages = ['home','problem','why','features','how','roi','pricing','who','trust','roadmap','faq','signin','apply'];
+
document.addEventListener('DOMContentLoaded', () => {
// Set initial page based on URL hash or default to 'home'
const initialPage = window.location.hash.substring(1) || 'home';
@@ -17,7 +19,9 @@ document.addEventListener('DOMContentLoaded', () => {
});
function openPage(pageId, isHistoryNavigation = false) {
- if (!pageId) pageId = 'home';
+ if (!pages.includes(pageId)) {
+ pageId = 'home';
+ }
// Hide all pages
document.querySelectorAll('.page').forEach(page => {
diff --git a/index.php b/index.php
index 2d9ef1d..0ae9488 100644
--- a/index.php
+++ b/index.php
@@ -99,12 +99,14 @@
HR Execution OS
-