79403126

Date: 2025-01-31 15:01:12
Score: 1
Natty:
Report link

Apparently the issue was not in the logic, I have a sideBar from ui.shadcn, It comes with a <a> property as default, this was causing the "issue" (not actually an issue, but for me it was), I switched to:

import { useRouter } from 'next/navigation'
const route = useRouter()

 const navigate = (url: string) => {
    route.push(url)
  }

And it's working fine.

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Nilton Schumacher F