ShareLink component receives programId as a prop π
Now, the ShareLink component gets the programId directly, which simplifies things!
Added 'path' variable to handle last part of URL π
Don't worry about handling the last part of the URL anymore - a new variable path is here to do that! It will replace the programId in both the iframe and redirectToRandomEntity() function within the ShareLink component, making everything even more efficient! π