diff --git a/.github/ISSUE_TEMPLATE/bug-issue.md b/.github/ISSUE_TEMPLATE/bug-issue.md
index e449d1b3..b5ea8574 100644
--- a/.github/ISSUE_TEMPLATE/bug-issue.md
+++ b/.github/ISSUE_TEMPLATE/bug-issue.md
@@ -1,9 +1,10 @@
---
name: bug issue
about: bug issue
-title: ""
+title: "[Bug]: "
labels: bug
assignees: YukiOnishi1129
+projects: ["YukiOnishi1129/3"]
---
# Summary
diff --git a/.github/ISSUE_TEMPLATE/feature-todo.md b/.github/ISSUE_TEMPLATE/feature-todo.md
index 785d30b0..e864dcf9 100644
--- a/.github/ISSUE_TEMPLATE/feature-todo.md
+++ b/.github/ISSUE_TEMPLATE/feature-todo.md
@@ -1,9 +1,10 @@
---
name: feature todo
about: feature todo
-title: ''
+title: "[Feature]: "
labels: enhancement
assignees: YukiOnishi1129
+projects: ["YukiOnishi1129/3"]
---
diff --git a/web/client/src/app/(auth)/login/page.tsx b/web/client/src/app/(auth)/login/page.tsx
index ec2b0af9..804bce2a 100644
--- a/web/client/src/app/(auth)/login/page.tsx
+++ b/web/client/src/app/(auth)/login/page.tsx
@@ -1,10 +1,17 @@
+import { redirect } from "next/navigation";
import { Suspense } from "react";
import { LoginTemplate } from "@/features/auth/components/LoginTemplate";
+import { getUser } from "@/features/users/actions/user";
import { ScreenLoader } from "@/components/layout/ScreenLoader";
-export default function Login() {
+export default async function Login() {
+ const user = await getUser();
+ if (user) {
+ redirect("/dashboard/trend");
+ }
+
return (
}>
diff --git a/web/client/src/app/dashboard/company/page.tsx b/web/client/src/app/dashboard/company/page.tsx
index c91a6653..eb2a7555 100644
--- a/web/client/src/app/dashboard/company/page.tsx
+++ b/web/client/src/app/dashboard/company/page.tsx
@@ -16,7 +16,7 @@ type PageProps = {
export default async function DashboardSitePage({ searchParams }: PageProps) {
const user = await getUser();
if (!user) {
- redirect("/");
+ redirect("/login");
}
const languageStatus =
typeof searchParams["languageStatus"] === "string"
diff --git a/web/client/src/app/dashboard/site/page.tsx b/web/client/src/app/dashboard/site/page.tsx
index d25f3edb..172f8c28 100644
--- a/web/client/src/app/dashboard/site/page.tsx
+++ b/web/client/src/app/dashboard/site/page.tsx
@@ -16,7 +16,7 @@ type PageProps = {
export default async function DashboardSitePage({ searchParams }: PageProps) {
const user = await getUser();
if (!user) {
- redirect("/");
+ redirect("/login");
}
const languageStatus =
typeof searchParams["languageStatus"] === "string"
diff --git a/web/client/src/app/dashboard/summary/page.tsx b/web/client/src/app/dashboard/summary/page.tsx
index 2680042d..0348b43e 100644
--- a/web/client/src/app/dashboard/summary/page.tsx
+++ b/web/client/src/app/dashboard/summary/page.tsx
@@ -18,7 +18,7 @@ export default async function DashboardSummaryPage({
}: PageProps) {
const user = await getUser();
if (!user) {
- redirect("/");
+ redirect("/login");
}
const languageStatus =
typeof searchParams["languageStatus"] === "string"
diff --git a/web/client/src/app/dashboard/trend/page.tsx b/web/client/src/app/dashboard/trend/page.tsx
index 8a51e9e7..a648a37d 100644
--- a/web/client/src/app/dashboard/trend/page.tsx
+++ b/web/client/src/app/dashboard/trend/page.tsx
@@ -16,7 +16,7 @@ type PageProps = {
export default async function TrendDashboardPage({ searchParams }: PageProps) {
const user = await getUser();
if (!user) {
- redirect("/");
+ redirect("/login");
}
const languageStatus =
@@ -37,9 +37,6 @@ export default async function TrendDashboardPage({ searchParams }: PageProps) {
if (typeof searchParams["feedId"] === "string")
feedIdList.push(searchParams["feedId"]);
- const tab =
- typeof searchParams["tab"] === "string" ? searchParams["tab"] : "english";
-
return (
}>