---
title: "Discussion on \"Tips from open-source: How redirect in Next.js works under the hood\" | Hashnode"
description: "Discussion on \"Tips from open-source: How redirect in Next.js works under the hood\". In this article, you will learn how redirect in next.js works under the hood by looking at the Next.js source code around redirect functionality.\nMy approach:\n\nStart from the `import { redirect } from \"next/navigation\"'\n\nBack trace the redirect funct..."
url: "https://hashnode.com/posts/tips-from-open-source-how-redirect-in-nextjs-works-under-the-hood/664294ce9723f172bb6f912d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Tips from open-source: How redirect in Next.js works under the hood](https://ramunarasinga.hashnode.dev/tips-from-open-source-how-redirect-in-nextjs-works-under-the-hood?utm_source=hashnode&utm_medium=feed)

In this article, you will learn how redirect in next.js works under the hood by looking at the Next.js source code around redirect functionality. My approach: Start from the \`import { redirect } from "next/navigation"' Back trace the redirect funct...

May 13, 2024 · 4 min read · ramunarasinga.hashnode.dev  
Updated Apr 29, 2025  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#redirect](https://hashnode.com/tag/redirect)

## Written by

[Ramu Narasinga](https://hashnode.com/@ram11)

@ram11

  
[View profile](https://hashnode.com/@ram11)

I am a FOSS enthusiast who explores patterns in the Github wilderness.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
