Dynamic routing using nextjs not working

Hi @samnagaraj ,

Welcome to the builder.io forum!

We are not quite able to reproduce this possible error but you can try a couple of things

  1. Using the Is filter instead of Starts with.

  2. When using params?.item, we were also getting a similar error and it wasn’t working, so you can also try using params.?page

const page = await builder
.get(‘page’, {
  userAttributes: {
    urlPath: ‘/’ + (params?.page?.join(‘/’) || ‘’),
  },
})