Prevent duplicate bookmarks

How can I prevent duplicate bookmarks with different url parameter?

For example:
www.domain.com
www.domain.com?subid1=test

The webpages is same but the smart group does not detect it.

I don’t think you can; you could easily automatically remove the section following ? in the URL using a script, leaving just the first portion which then would presumably be recognised as a duplicate. On the other hand, what then happens to https://www.laaokkii.com?redirect=page72 which is not the same webpage as https://www.laaokkii.com? I don’t think there is any way you can automate that intelligence without software which actually actively compares the results of parsing the URL.

I’m seeing both URLs here marked as duplicates…

https://discourse.devontechnologies.com/t/prevent-duplicate-bookmarks/63481

https://discourse.devontechnologies.com/t/prevent-duplicate-bookmarks/63481/2

Is it sarcasm?

No, it’s not sarcasm.
I’m stating I am showing bookmarks of these two URLs are reported as duplicates here.

The difference then presumably being the ? in the OP’s URLs.