79357485

Date: 2025-01-15 08:24:43
Score: 2
Natty:
Report link

According to the docs for dynamic routes, it shows you should add [name] and then reference what [name] should be in a separate property called params.

Something like below should work, if it does not please let me know and I'll try and help you from there.

<Link
  href={{
    pathname: '/[serivceName]',
    params: { serviceName: servie.name.toLowerCase() },
  }}>
    {/* Content here */}
</Link>

I think you do need a file called the name of your service or [serviceName].(jsx/tsx) for this to work, but I think you may have already done that.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wessel van Leeuwen