Notice that https://underpassapp.com/StopTheMadness/ is missing from the history! What happened? DuckDuckGo intercepts the link click and then redirects you to the result page, for some strange reason. Fortunately, there's now a solution to this problem. Today I've released version 15.3 of my Safari extension StopTheMadness in the Mac App Store. To stop DuckDuckGo clickjacking, install StopTheMadness, create custom website options for
duckduckgo.com, and then enable the "All mouse clicks" option. Now when you repeat the search, your Safari history is correct:
The "All mouse clicks" website option is not available in the "Default options for all websites" because it would cause too much website breakage if enabled globally. But in special cases such as DuckDuckGo search results, it can be very useful.