Closed nikolovjd closed 1 year ago
Hello @nikolovjd,
Which the link do you using next/Link
or next-routes/link
?
@alanhr I'm using next-routes/link
@jaabiri This doesn't explain why also register does full page load.
@nikolovjd normally I use this way .add({ name: 'home', pattern: '/', page: 'home' })
Why is clicking on a link causing a full page load?
My routes.js
const routes = require('next-routes'); module.exports = routes() .add('register') .add('index', '/') .add('confirm-email', '/confirm-email/:token');
server.js
app.prepare().then(() => { const server = express(); server.use(cookieParser()); // SOME POST ROUTES ADDED HERE }); server.use(handler); server.listen(4000); });
I'm using the Link component imported from routes.js, like this:
<Link route="index"> <a>Index</a> </Link>
same problem!
Did you find a solution for this?
Why is clicking on a link causing a full page load?
My routes.js
server.js
I'm using the Link component imported from routes.js, like this: