Javascript – Undefined TypeError: path.startsWith is not a function
I have this code in next.js where from a component I send this: <button className="bg-blue-500 hover:bg-violet-500 text-white font-bold py-2 px-4 rounded mx-auto mt-auto" onClick={() => router.push({ pathname: /publicacion/perfilPublicacion, query: publicacion })} Me interesa </button> and I receive it this way:…