You must be logged into Scratch to share your project, otherwise the link will not work.
To get the URL link of your Scratch project:
- Make sure you're logged into Scratch.
- Click on the Share button in the project editor.
- Click on the Copy Link button.
- Click on the Copy Link link. This will save the URL of your project page into your clipboard.