#Trouble with parallel/intercepted routes

2 messages · Page 1 of 1 (latest)

quaint wolf
#

I am following the steps in the guide here:
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#modals

But I can't seem to get it to work properly. Using <Link href="/login"> should show my login modal, but instead brings me to a 404 page on development, and on production deployment it just ignores the intercepted route altogether and shows the standard /login page route.

This is my layout code

export default function RootLayout({ children, auth }) {
  return (
    <html>
      <body className={inter.className}>
         <Header />
         <div className="pt-14 min-h-screen">
           {children}
           {auth}
         </div>
         <Footer />
      </body>
    </html>
  );
}```
somber ridgeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)