Page Redirect With Gatsby

Page Redirect With Gatsby

Everything you wanted to know about redirects in Gatsby.js and more

So your website is running happily with Gatsby. However, like every digital product, it is bound to grow and evolve. One candidate for change that you probably don’t give much thought to is URL architecture.

A blog post that started out at a URL like http://yourdomain.com/website-speed may be redirected to http://yourdomain.com/blog/how-to-make-your-website-faster.

Another scenario that you may find yourself in is when your content attracts a large following, prompting you to offer a gated section for subscribers.

Once they land on your home page, they will be automatically taken to a private dashboard page. Meanwhile, unauthenticated users who land on that private route will be navigated to the home page with a log-in section. This is a very common design pattern in web apps.

How do we put that into implementation? Stick with me and by the end of this article, you’ll build a production-ready redirect workflow that you can plug into any Gatsby app you dream up.

reactjs react javascript gatsby

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

What is ReactJS? | ReactJS Basics | Learn ReactJS | React for Beginners | ReactJS Training

This Edureka video on "What is ReactJS ?" will help you understand the fundamentals of ReactJS and help you in building a strong foundation in React by understanding the advantages of ReactJS along with its features and major aspects.

Increase Performance of React Applications Via Array JavaScript Methods

Increase Performance of React Applications Via Array JavaScript Methods. We will create a simple event management application in the react to add, update, and delete an event.

Routing in React without React-Router

I have been using React JS in my projects for quite some time now and am used to managing routing in my app using the react-router package. I have always been keen on having as little dependencies in my apps as possible, so, I always felt perturbed by the use of this particular package in simpler apps which did not have complex routes.

The Ugly Side of React Hooks

In this post, I will share my own point of view about React Hooks, and as the title of this post implies, I am not a big fan.