Next.js Discord

Discord Forum

Multizone rewrites second app not linking back to orginial app

Unanswered
Streak-backed Oriole posted this in #help-forum
Open in Discord
Streak-backed OrioleOP
Set up a multizone with rewrites following the docs everything works fine except for linking back to the original app from the second app. I've tried href='/' and href='../' and href={"/"}.

<div className="menu">
        <Link href="/">
          <img className="w-10 hover:brightness-200 hover:grayscale" src="/hotdog-truck.png" alt="Hotdog Truck"></img>
        </Link>
      </div>


thought about adding rewrites to both apps but that doesn't seem like the thing to do. Here's my next.config file for the second app.

```
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
basePath: "/blog",
images: {
domains: ["gateway.ipfscdn.io", "i.seadn.io", "ipfs.io"],
},
};

module.exports = nextConfig;

2 Replies

Streak-backed OrioleOP
I’m not using a Turborepo but just a simple multizone setup with two next apps. The rewrites in app 1 works but when clicking the link to go from app 2 back to app 1, it directs to app 2’s index.tsx instead of app 1’s index.tsx
Streak-backed OrioleOP
Took some digging but Link is the issue. Need to use <a> instead. Will test later