Support for linking to text fragments was introduced in Safari 16.1. Clicking an in-page link to a text fragment, such as in the example below, does not update the URL with the new fragment: <a href='#:~:text=hello%20world'>Go to: hello world</a> I'm not sure if this works as intended, but it is in contrast to the behavior of other browsers (e.g. Firefox, Safari), which update the URL fragment. Also note that in Safari, right-clicking and opening the link in a separate tab does preserve the text fragment identifier in the URL.
<rdar://problem/104297224>