Client side routing not working in Next.js
I have the following pages; pages/_app.js pages/_document.js pages/index.js pages/order.js pages/discover/[categoryId].js Here is the order page. The client side routing only changes the url but not the content of the page. If I refresh the page I get the last content. So the server side routing works but the client side routing only changes the url and not the content. import React from "react"; import Head from "next/head"; import Link from "next/link"; export default function Order() { return ( <> <Head> <title>Orders</title> </Head> <div> <p>Put orders here</p> <Link href={"/"}> <a>Home</a
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.