Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/docs/contribute/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m

- [Zen Browser Documentation Repository](https://github.com/zen-browser/docs)
- [Fumadocs Documentation](https://fumadocs.vercel.app/docs/ui)
- [Contribution Guidelines](/contribute/contributing)
- [Contribution Guidelines](/contribute)
- [Code of Conduct](/contribute/code-of-conduct)
- [Editing with VS Code](/contribute/docs/editing-with-vscode)

Expand Down
1 change: 0 additions & 1 deletion content/docs/contribute/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"title": "Contribute",
"icon": "GitMerge",
"pages": [
"contributing",
"..."
]
}
2 changes: 1 addition & 1 deletion content/docs/contribute/translation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Crowdin allows you to track the progress of the translation project and stay upd

- [Zen Browser Translation Project on Crowdin](https://crowdin.com/project/zen-browser)
- [Crowdin Documentation](https://support.crowdin.com/)
- [Contribution Guidelines](/contribute/contributing)
- [Contribution Guidelines](/contribute)
- [Code of Conduct](/contribute/code-of-conduct)

---
Expand Down
2 changes: 1 addition & 1 deletion content/docs/contribute/www.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m
## Additional Resources

- [Zen Browser Homepage Repository](https://github.com/zen-browser/www)
- [Contribution Guidelines](/contribute/contributing)
- [Contribution Guidelines](/contribute)
- [Code of Conduct](/contribute/code-of-conduct)

---
Expand Down
2 changes: 1 addition & 1 deletion content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Welcome to **Zen Browser's Documentation!** Here, you'll find everything you nee
<Card
icon={<HeartIcon />}
title="Contribute"
href="/contribute/contributing"
href="/contribute"
description="How to contribute to the project"
/>
</Cards>
5 changes: 5 additions & 0 deletions src/app/(docs)/(redirects)/contribute/contributing/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Redirect from "@/components/Redirect";

export default function BuildingRedirect() {
return <Redirect to="/contribute" />;
}
5 changes: 5 additions & 0 deletions src/app/(docs)/(redirects)/guides/building/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Redirect from "@/components/Redirect";

export default function BuildingRedirect() {
return <Redirect to="/contribute/desktop" />;
}
11 changes: 0 additions & 11 deletions src/app/guides/building/page.tsx

This file was deleted.

19 changes: 19 additions & 0 deletions src/components/Redirect.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Link from "next/link";

interface RedirectProps {
to: string;
message?: string;
}

export default function Redirect({ to, message }: RedirectProps) {
return (
<>
<meta httpEquiv="refresh" content={`2;url=${to}`} />
<link rel="canonical" href={to} />
<p className="m-auto">
{message || "Redirecting to"}{" "}
<Link href={to}>new documentation location</Link>...
</p>
</>
);
}