Fix: Resolve 404 error on public status page
This commit is contained in:
@@ -50,7 +50,7 @@ function App() {
|
||||
<Routes>
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
<Route path="/public/:pageId" element={<PublicStatusPage />} />
|
||||
<Route path="/public/:slug" element={<PublicStatusPage />} />
|
||||
|
||||
{/* Protected Routes */}
|
||||
<Route path="/dashboard" element={
|
||||
|
||||
@@ -39,8 +39,8 @@ export const OperationalPageContent = () => {
|
||||
if (page.custom_domain) {
|
||||
window.open(`https://${page.custom_domain}`, '_blank');
|
||||
} else {
|
||||
// Navigate to the public status page route
|
||||
window.open(`/status/${page.slug}`, '_blank');
|
||||
// Navigate to the public status page route using the correct format
|
||||
window.open(`/public/${page.slug}`, '_blank');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user