Skip to content

Commit f61d824

Browse files
redirect url
1 parent 49543ee commit f61d824

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

documentation/src/pages/AkashSingh3031/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Head from "@docusaurus/Head";
22
import Link from "@docusaurus/Link";
33
import clsx from "clsx";
4-
import React from "react";
4+
import React, { useEffect } from "react";
55
import { Fireworks } from "fireworks-js";
66
import { CommonFooter } from "@site/src/prepverse-theme/common-footer";
77
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
@@ -13,6 +13,9 @@ import BackToTopButton from '@theme/BackToTopButton';
1313

1414
const About: React.FC = () => {
1515
const { colorMode } = useColorMode();
16+
useEffect(() => {
17+
window.location.href = "https://prepverse.vercel.app/AkashSingh3031";
18+
}, []);
1619

1720
return (
1821
<>

documentation/src/pages/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Head from "@docusaurus/Head";
22
import clsx from "clsx";
3-
import React from "react";
3+
import React, { useEffect } from "react";
44

55
import { CommonLayout } from "../prepverse-theme/common-layout";
66
import { CommonHeader } from "../prepverse-theme/common-header";
@@ -13,12 +13,16 @@ import { useColorMode } from "@docusaurus/theme-common";
1313

1414
function Home() {
1515
const title = "PrepVerse | Comprehensive Computer Science Resources";
16+
useEffect(() => {
17+
window.location.href = "https://prepverse.vercel.app/";
18+
}, []);
1619
return (
1720
<>
1821
<Head>
1922
<html data-active-page="index" />
2023
<title>{title}</title>
2124
<meta property="og:title" content={title} />
25+
<link rel="canonical" href="https://prepverse.vercel.app" />
2226
<link
2327
rel="preload"
2428
href="https://prepverse.vercel.app"

0 commit comments

Comments
 (0)