Compare commits

...

2 Commits

Author SHA1 Message Date
danswer-trial
70886a9934 Link "Admin panel" to /admin instead of deep-linking to the connectors page 2024-09-13 18:16:56 -07:00
danswer-trial
8533d49b28 Quick redirect for /admin for better ergo
Let's get rid of the papercut 404 here
2024-09-13 18:14:31 -07:00
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
import { redirect } from "next/navigation";
export default async function Page() {
// Replace me when you have something better!
redirect("/admin/indexing/status");
}

View File

@@ -152,14 +152,14 @@ export function UserDropdown({
{showAdminPanel ? (
<DropdownOption
href="/admin/indexing/status"
href="/admin"
icon={<LightSettingsIcon className="h-5 w-5 my-auto mr-2" />}
label="Admin Panel"
/>
) : (
showCuratorPanel && (
<DropdownOption
href="/admin/indexing/status"
href="/admin"
icon={<LightSettingsIcon className="h-5 w-5 my-auto mr-2" />}
label="Curator Panel"
/>