fix: restore staff & candidate routes — remove dead staff.aethex.tech redirects
staff.aethex.tech doesn't exist. Re-wired /staff and /candidate to the
existing page components already in the codebase:
Staff: Staff, StaffLogin, StaffDashboard, StaffAdmin, StaffChat,
StaffDocs, StaffDirectory, StaffAchievements, StaffTimeTracking
Candidate: CandidatePortal, CandidateInterviews, CandidateOffers,
CandidateProfile
Unbuilt staff sub-routes (/staff/announcements etc.) now fall back to
/staff/dashboard instead of 404ing through a dead external domain.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1599d0e690
commit
fbc5ed2f40
1 changed files with 30 additions and 6 deletions
|
|
@ -135,7 +135,19 @@ import Space4ClientOps from "./pages/internal-docs/Space4ClientOps";
|
|||
import Space4PlatformStrategy from "./pages/internal-docs/Space4PlatformStrategy";
|
||||
import Space5Onboarding from "./pages/internal-docs/Space5Onboarding";
|
||||
import Space5Finance from "./pages/internal-docs/Space5Finance";
|
||||
// Staff/Candidate pages moved to staff.aethex.tech (aethex-staff app)
|
||||
import Staff from "./pages/Staff";
|
||||
import StaffLogin from "./pages/StaffLogin";
|
||||
import StaffDashboard from "./pages/dashboards/StaffDashboard";
|
||||
import StaffAdmin from "./pages/StaffAdmin";
|
||||
import StaffChat from "./pages/StaffChat";
|
||||
import StaffDocs from "./pages/StaffDocs";
|
||||
import StaffDirectory from "./pages/StaffDirectory";
|
||||
import StaffAchievements from "./pages/StaffAchievements";
|
||||
import StaffTimeTracking from "./pages/staff/StaffTimeTracking";
|
||||
import CandidatePortal from "./pages/candidate/CandidatePortal";
|
||||
import CandidateInterviews from "./pages/candidate/CandidateInterviews";
|
||||
import CandidateOffers from "./pages/candidate/CandidateOffers";
|
||||
import CandidateProfile from "./pages/candidate/CandidateProfile";
|
||||
import DeveloperDashboard from "./pages/dev-platform/DeveloperDashboard";
|
||||
import ApiReference from "./pages/dev-platform/ApiReference";
|
||||
import QuickStart from "./pages/dev-platform/QuickStart";
|
||||
|
|
@ -387,11 +399,23 @@ const App = () => (
|
|||
<Route path="/corp" element={<ExternalRedirect to="https://aethex.co" />} />
|
||||
<Route path="/corp/*" element={<ExternalRedirect to="https://aethex.co" />} />
|
||||
|
||||
{/* Staff + Candidate routes → staff.aethex.tech */}
|
||||
<Route path="/staff" element={<ExternalRedirect to="https://staff.aethex.tech" />} />
|
||||
<Route path="/staff/*" element={<ExternalRedirect to="https://staff.aethex.tech" />} />
|
||||
<Route path="/candidate" element={<ExternalRedirect to="https://staff.aethex.tech/candidate" />} />
|
||||
<Route path="/candidate/*" element={<ExternalRedirect to="https://staff.aethex.tech/candidate" />} />
|
||||
{/* Staff routes */}
|
||||
<Route path="/staff" element={<Staff />} />
|
||||
<Route path="/staff/login" element={<StaffLogin />} />
|
||||
<Route path="/staff/dashboard" element={<StaffDashboard />} />
|
||||
<Route path="/staff/admin" element={<StaffAdmin />} />
|
||||
<Route path="/staff/chat" element={<StaffChat />} />
|
||||
<Route path="/staff/docs" element={<StaffDocs />} />
|
||||
<Route path="/staff/directory" element={<StaffDirectory />} />
|
||||
<Route path="/staff/achievements" element={<StaffAchievements />} />
|
||||
<Route path="/staff/time-tracking" element={<StaffTimeTracking />} />
|
||||
{/* Unbuilt staff sub-pages fall back to dashboard */}
|
||||
<Route path="/staff/*" element={<Navigate to="/staff/dashboard" replace />} />
|
||||
{/* Candidate routes */}
|
||||
<Route path="/candidate" element={<CandidatePortal />} />
|
||||
<Route path="/candidate/interviews" element={<CandidateInterviews />} />
|
||||
<Route path="/candidate/offers" element={<CandidateOffers />} />
|
||||
<Route path="/candidate/profile" element={<CandidateProfile />} />
|
||||
|
||||
{/* Dev-Link routes - now redirect to Nexus Opportunities with ecosystem filter */}
|
||||
<Route path="/dev-link" element={<Navigate to="/opportunities?ecosystem=roblox" replace />} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue