Next.js Tutorial - 63 - Redirects

preview_player
Показать описание

📱 Follow Codevolution

Рекомендации по теме
Комментарии
Автор

Use Coupon Code 'CODEVOLUTION' for 50% OFF lifetime discount applied to any upgraded subscription

Codevolution
Автор

make sure not to put another slash at the end of your source path, or the redirect won't work. I learned the hard way.

terry_swd
Автор

I'm doing the same but if you navigate to /about with the Link component it won't work why is that ? or I'm doing something wrong ?

ashutoshpanda
Автор

hello, i'm using React context API in nextjs, when run in local and going one route to another route, context api data working well using next/link or next/navigation, but when deploy netify and move one route to another route context api clean all the time, not like behaver as local yarn dev, how can i solve it?

AbuTaher-vxoe
Автор

Hi there, I have watched your whole series and it was amazing. I have also created a project using next auth. But there is one problem which I am facing. My code is working for development version but crashing for production. Can we somehow come in contact and solve this issue? It will be very helpful....

VMNthemaster
Автор

have you been able to use the 'has' field? Seems superb confusing.

ankanmondal
Автор

The bad part is, these don't work with next/link if the path being requested exists within the filesystem, even though it works if you request the URL directly or refresh the page. This is a huge miss IMO.

cardbored_
Автор

How can u change the default redirection from 308 to 301? Thanks in advance.

kristiantrpcevski
Автор

Hello SIr, How can we redirect to same page but with trailing slash? Can you help me out, like /about to /about/ Your suggestions will be appreciated.

vijaychougule
Автор

it works in local server but when i deploy app it is not working why ?
Here is my code
redirects: async () => {
return [
{
source: "/jp/:path*",
destination: "/ja/:path*",
permanent: true,
locale: false,
},
];
},

DhruvBaldha-dh
visit shbcf.ru