Hi @Clark, Lorenzo:(Contractor - ComEd) ,
By design, the Code Snippet webpart provides a simple way to visualize specific examples of code within a brief snippet. The purpose of this web part is to display code as text within a page.
In other words, the Code Snippet webpart doesn't do anything - the code is not executed. It's only used to display code so you can use it to document programs and such.
If you want to add a List hyperlink to Modern page, you can choose the Text webpart.
-------------------------
Please follow steps:
Add the Text webpart >> click Hyperlink icon >> entry the List Title and the List link >> Save and Publish your page
Thanks,
Echo Du
=============
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.