From f61d8240015be92d44d4bf2a6bfdd1d29fd6c21a Mon Sep 17 00:00:00 2001
From: Akash Singh
Date: Thu, 7 Nov 2024 18:35:33 +0530
Subject: [PATCH] redirect url
---
documentation/src/pages/AkashSingh3031/index.tsx | 5 ++++-
documentation/src/pages/index.tsx | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/documentation/src/pages/AkashSingh3031/index.tsx b/documentation/src/pages/AkashSingh3031/index.tsx
index 63328e1..d4f8332 100644
--- a/documentation/src/pages/AkashSingh3031/index.tsx
+++ b/documentation/src/pages/AkashSingh3031/index.tsx
@@ -1,7 +1,7 @@
import Head from "@docusaurus/Head";
import Link from "@docusaurus/Link";
import clsx from "clsx";
-import React from "react";
+import React, { useEffect } from "react";
import { Fireworks } from "fireworks-js";
import { CommonFooter } from "@site/src/prepverse-theme/common-footer";
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
@@ -13,6 +13,9 @@ import BackToTopButton from '@theme/BackToTopButton';
const About: React.FC = () => {
const { colorMode } = useColorMode();
+ useEffect(() => {
+ window.location.href = "https://prepverse.vercel.app/AkashSingh3031";
+ }, []);
return (
<>
diff --git a/documentation/src/pages/index.tsx b/documentation/src/pages/index.tsx
index 409889b..3dbfc41 100644
--- a/documentation/src/pages/index.tsx
+++ b/documentation/src/pages/index.tsx
@@ -1,6 +1,6 @@
import Head from "@docusaurus/Head";
import clsx from "clsx";
-import React from "react";
+import React, { useEffect } from "react";
import { CommonLayout } from "../prepverse-theme/common-layout";
import { CommonHeader } from "../prepverse-theme/common-header";
@@ -13,12 +13,16 @@ import { useColorMode } from "@docusaurus/theme-common";
function Home() {
const title = "PrepVerse | Comprehensive Computer Science Resources";
+ useEffect(() => {
+ window.location.href = "https://prepverse.vercel.app/";
+ }, []);
return (
<>
{title}
+